Browse Source

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.

OTHGMars 11 years ago
parent
commit
172e62a8f1
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Engine/source/scene/sceneObject.cpp

+ 2 - 1
Engine/source/scene/sceneObject.cpp

@@ -945,7 +945,8 @@ void SceneObject::setProcessTick( bool t )
 
    if ( mProcessTick )
    {
-      plUnlink();
+      if ( !getMountedObjectCount() )
+         plUnlink(); // Only unlink if there is nothing mounted to us
       mProcessTick = false;
    }
    else