mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-20 04:34:48 +00:00
adress #203
This commit is contained in:
parent
341c7eeee1
commit
06abd3f1eb
|
|
@ -361,9 +361,11 @@ void SFXWorld< NUM_DIMENSIONS, Object >::_onScopeIn( Object object )
|
|||
F32 sortValue = _getSortValue( object );
|
||||
while( iter != mScopeStack.end() && iter->mSortValue >= sortValue )
|
||||
++ iter;
|
||||
|
||||
// Insert the object into the stack.
|
||||
|
||||
// If the object is already on the scope stack, do not add it again
|
||||
S32 index = _findScope(object);
|
||||
if (index != -1)
|
||||
return;
|
||||
// Insert the object into the stack.
|
||||
mScopeStack.insert( iter, Scope( sortValue, object ) );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue