mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-06 14:00:39 +00:00
filter out component inspector button callbacks
specifically targets the undo manager via avoiding onInspectorFieldModified et al tripping on clicks
This commit is contained in:
parent
d671f2611e
commit
113b3324a8
2 changed files with 2 additions and 2 deletions
|
|
@ -74,7 +74,7 @@ void GuiInspectorDynamicField::setData( const char* data, bool callbacks )
|
|||
{
|
||||
target->inspectPreApply();
|
||||
|
||||
if( callbacks )
|
||||
if( callbacks && !mField->flag.test(AbstractClassRep::FieldFlags::FIELD_ComponentInspectors))
|
||||
{
|
||||
if( isRemoval )
|
||||
Con::executef( mInspector, "onFieldRemoved", target->getIdString(), mDynField->slotName );
|
||||
|
|
|
|||
|
|
@ -378,7 +378,7 @@ void GuiInspectorField::setData( const char* data, bool callbacks )
|
|||
|
||||
// Fire callback single-object undo.
|
||||
|
||||
if( callbacks )
|
||||
if( callbacks && !mField->flag.test(AbstractClassRep::FieldFlags::FIELD_ComponentInspectors) )
|
||||
Con::executef( mInspector, "onInspectorFieldModified",
|
||||
target->getIdString(),
|
||||
mField->pFieldname,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue