adds an onInspectPostApply(%objectInsatnceID) callback triggered any time the inspector is impacted (so moving things, scaling them, or otherwise altering variables on a given instance via editor)

This commit is contained in:
AzaezelX 2020-01-12 17:25:08 -06:00
parent f007700646
commit d872d84b9f
2 changed files with 3 additions and 2 deletions

View file

@ -93,6 +93,7 @@ ConsoleDocClass( SceneObject,
"@ingroup gameObjects\n"
);
IMPLEMENT_CALLBACK(SceneObject, onInspectPostApply, void, (SceneObject* obj), (obj),"Generic callback for when an object is edited");
#ifdef TORQUE_TOOLS
extern bool gEditingMission;
#endif
@ -376,7 +377,7 @@ void SceneObject::inspectPostApply()
{
if( isServerObject() )
setMaskBits( MountedMask );
onInspectPostApply_callback(this);
Parent::inspectPostApply();
}