MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / HObjectSetDefault

Function HObjectSetDefault

editor/HObject.cpp:542–550  ·  view source on GitHub ↗

sets default orientation for object.

Source from the content-addressed store, hash-verified

540
541// sets default orientation for object.
542void HObjectSetDefault() {
543 if (Cur_object_index != -1) {
544 int objnum = Cur_object_index;
545
546 ObjSetOrient(&Objects[objnum], &Identity_matrix);
547
548 World_changed = 1;
549 }
550}
551
552// Move the object to in front of the viewer (where a new object would be placed)
553void HObjectMoveToViewer(object *objp) {

Callers 1

OnObjpadSetdefaultMethod · 0.85

Calls 1

ObjSetOrientFunction · 0.85

Tested by

no test coverage detected