mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-01 19:43:49 +00:00
fix TORQUE_TOOLS = off compilation
This commit is contained in:
parent
9836f6eb30
commit
4a7104e5ea
38 changed files with 80 additions and 56 deletions
|
|
@ -82,6 +82,7 @@ void Zone::consoleInit()
|
|||
getStaticClassRep()->mIsRenderEnabled = false;
|
||||
}
|
||||
|
||||
#ifdef TORQUE_TOOLS
|
||||
void Zone::initPersistFields()
|
||||
{
|
||||
addProtectedField("selectAll", TypeBool, Offset(mSelecting, Zone),
|
||||
|
|
@ -90,13 +91,10 @@ void Zone::initPersistFields()
|
|||
Parent::initPersistFields();
|
||||
}
|
||||
|
||||
|
||||
bool Zone::_doSelect(void* object, const char* index, const char* data)
|
||||
{
|
||||
Zone* zone = reinterpret_cast<Zone*>(object);
|
||||
|
||||
zone->selectWithin();
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -138,6 +136,7 @@ void Zone::selectWithin()
|
|||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
//=============================================================================
|
||||
// Console API.
|
||||
//=============================================================================
|
||||
|
|
@ -162,9 +161,10 @@ DefineEngineMethod( Zone, dumpZoneState, void, ( bool updateFirst ), ( true ),
|
|||
{
|
||||
object->dumpZoneState( updateFirst );
|
||||
}
|
||||
|
||||
#ifdef TORQUE_TOOLS
|
||||
DefineEngineMethod(Zone, selectWithin, void, () ,,
|
||||
"select a list of all objects assigned to the zone")
|
||||
{
|
||||
object->selectWithin();
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue