mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 16:25:42 +00:00
Merge pull request #1141 from Azaezel/alpha41/nonobutton
filter out component inspector button callbacks
This commit is contained in:
commit
f63371432e
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