mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-20 12:50:57 +00:00
updates
Fixed streaming logic to only happen when we are not editing a mission, also some issues with objects that cannot be streamed eg camera, and player. Reverted limits
This commit is contained in:
parent
eecc2bdaee
commit
1fed963d82
5 changed files with 37 additions and 23 deletions
|
|
@ -628,3 +628,23 @@ void SimDataBlockGroup::sort()
|
|||
dQsort(mObjectList.address(), mObjectList.size(),sizeof(SimObject *),compareModifiedKey);
|
||||
}
|
||||
}
|
||||
|
||||
void SceneStreaming::processTick()
|
||||
{
|
||||
if (true)
|
||||
{
|
||||
for (U32 i = 0; i < mMaxObjects && !smPendingRegister.empty(); i++)
|
||||
{
|
||||
SimObject* obj = smPendingRegister.first();
|
||||
smPendingRegister.pop_front();
|
||||
|
||||
Sim::gIdDictionary->insert(obj);
|
||||
|
||||
Sim::gNameDictionary->insert(obj);
|
||||
|
||||
|
||||
if (!obj->onAdd())
|
||||
obj->unregisterObject();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue