mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Merge pull request #1163 from Azaezel/alpha41/filtefuntimeztoo
filter inspector buttons out of the following:
This commit is contained in:
commit
4c58a3601f
|
|
@ -1358,7 +1358,7 @@ void PersistenceManager::updateObject(SimObject* object, ParsedObject* parentObj
|
|||
const AbstractClassRep::Field* f = &list[i];
|
||||
|
||||
// Skip the special field types.
|
||||
if ( f->type >= AbstractClassRep::ARCFirstCustomField )
|
||||
if ( f->type >= AbstractClassRep::ARCFirstCustomField || f->flag.test(AbstractClassRep::FieldFlags::FIELD_ComponentInspectors))
|
||||
continue;
|
||||
|
||||
for(U32 j = 0; S32(j) < f->elementCount; j++)
|
||||
|
|
|
|||
|
|
@ -317,7 +317,7 @@ void SimObject::writeFields(Stream &stream, U32 tabStop)
|
|||
const AbstractClassRep::Field* f = &list[i];
|
||||
|
||||
// Skip the special field types.
|
||||
if ( f->type >= AbstractClassRep::ARCFirstCustomField )
|
||||
if ( f->type >= AbstractClassRep::ARCFirstCustomField || f->flag.test(AbstractClassRep::FieldFlags::FIELD_ComponentInspectors))
|
||||
continue;
|
||||
|
||||
for(U32 j = 0; S32(j) < f->elementCount; j++)
|
||||
|
|
@ -913,7 +913,7 @@ void SimObject::assignFieldsFrom(SimObject *parent)
|
|||
continue;
|
||||
|
||||
// Skip the special field types.
|
||||
if ( f->type >= AbstractClassRep::ARCFirstCustomField )
|
||||
if ( f->type >= AbstractClassRep::ARCFirstCustomField || f->flag.test(AbstractClassRep::FieldFlags::FIELD_ComponentInspectors))
|
||||
continue;
|
||||
|
||||
// Skip certain fields that we don't want to see copied so we don't
|
||||
|
|
@ -3255,7 +3255,7 @@ DefineEngineMethod( SimObject, getFieldCount, S32, (),,
|
|||
f = &list[i];
|
||||
|
||||
// The special field types do not need to be counted.
|
||||
if ( f->type >= AbstractClassRep::ARCFirstCustomField )
|
||||
if ( f->type >= AbstractClassRep::ARCFirstCustomField || f->flag.test(AbstractClassRep::FieldFlags::FIELD_ComponentInspectors))
|
||||
numDummyEntries++;
|
||||
}
|
||||
|
||||
|
|
@ -3280,7 +3280,7 @@ DefineEngineMethod( SimObject, getField, const char*, ( S32 index ),,
|
|||
f = &list[i];
|
||||
|
||||
// The special field types can be skipped.
|
||||
if ( f->type >= AbstractClassRep::ARCFirstCustomField )
|
||||
if ( f->type >= AbstractClassRep::ARCFirstCustomField || f->flag.test(AbstractClassRep::FieldFlags::FIELD_ComponentInspectors))
|
||||
continue;
|
||||
|
||||
if(currentField == index)
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ bool SimObject::writeObject(Stream *stream)
|
|||
|
||||
for(itr = fieldList.begin();itr != fieldList.end();itr++)
|
||||
{
|
||||
if( itr->type >= AbstractClassRep::ARCFirstCustomField )
|
||||
if( itr->type >= AbstractClassRep::ARCFirstCustomField || itr->flag.test(AbstractClassRep::FieldFlags::FIELD_ComponentInspectors))
|
||||
{
|
||||
numFields--;
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Reference in a new issue