mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 00:54:54 +00:00
followuup to #837378a -safety checks for select within zone
This commit is contained in:
parent
482b179baa
commit
ef264083ae
1 changed files with 16 additions and 16 deletions
|
|
@ -103,10 +103,9 @@ bool Zone::_doSelect(void* object, const char* index, const char* data)
|
||||||
void Zone::selectWithin()
|
void Zone::selectWithin()
|
||||||
{
|
{
|
||||||
SimpleQueryList sql;
|
SimpleQueryList sql;
|
||||||
//getContainer()->polyhedronFindObjects(getPolyhedron(), 0xFFFFFFFF, SimpleQueryList::insertionCallback, &sql);
|
|
||||||
|
|
||||||
//replace the above with this once we stort out how to look up the managed zoneID from the insatnce itself
|
|
||||||
Zone* zoneClient = (Zone*)getClientObject();
|
Zone* zoneClient = (Zone*)getClientObject();
|
||||||
|
if (zoneClient)
|
||||||
|
{
|
||||||
SceneZoneSpaceManager* zoneManager = zoneClient->getSceneManager()->getZoneManager();
|
SceneZoneSpaceManager* zoneManager = zoneClient->getSceneManager()->getZoneManager();
|
||||||
if (zoneManager)
|
if (zoneManager)
|
||||||
{
|
{
|
||||||
|
|
@ -125,6 +124,7 @@ void Zone::selectWithin()
|
||||||
sql.insertObject(obj);
|
sql.insertObject(obj);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
WorldEditor* wedit;
|
WorldEditor* wedit;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue