mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +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();
|
target->inspectPreApply();
|
||||||
|
|
||||||
if( callbacks )
|
if( callbacks && !mField->flag.test(AbstractClassRep::FieldFlags::FIELD_ComponentInspectors))
|
||||||
{
|
{
|
||||||
if( isRemoval )
|
if( isRemoval )
|
||||||
Con::executef( mInspector, "onFieldRemoved", target->getIdString(), mDynField->slotName );
|
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.
|
// Fire callback single-object undo.
|
||||||
|
|
||||||
if( callbacks )
|
if( callbacks && !mField->flag.test(AbstractClassRep::FieldFlags::FIELD_ComponentInspectors) )
|
||||||
Con::executef( mInspector, "onInspectorFieldModified",
|
Con::executef( mInspector, "onInspectorFieldModified",
|
||||||
target->getIdString(),
|
target->getIdString(),
|
||||||
mField->pFieldname,
|
mField->pFieldname,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue