mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
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:
parent
f007700646
commit
d872d84b9f
2 changed files with 3 additions and 2 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue