mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
Mount Process Order Fix 2
Added a check to SceneObject::setProcessTick() to prevent objects that have mounts from being removed from the process list so the processAfter chain of the mounted objects is not broken.
This commit is contained in:
parent
8250e4728d
commit
172e62a8f1
1 changed files with 2 additions and 1 deletions
|
|
@ -945,7 +945,8 @@ void SceneObject::setProcessTick( bool t )
|
||||||
|
|
||||||
if ( mProcessTick )
|
if ( mProcessTick )
|
||||||
{
|
{
|
||||||
plUnlink();
|
if ( !getMountedObjectCount() )
|
||||||
|
plUnlink(); // Only unlink if there is nothing mounted to us
|
||||||
mProcessTick = false;
|
mProcessTick = false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue