Explorar o código

Removed redundant check

Klaus Silveira %!s(int64=12) %!d(string=hai) anos
pai
achega
55cb5a6752
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      Engine/source/scene/sceneManager.cpp

+ 1 - 3
Engine/source/scene/sceneManager.cpp

@@ -156,9 +156,7 @@ void SceneManager::renderScene( ScenePassType passType, U32 objectMask )
    {
       // Store the camera state so if we lock, this will become the
       // locked state.
-
-      if( passType == SPT_Diffuse )
-         smLockedDiffuseCamera = cameraState;
+      smLockedDiffuseCamera = cameraState;
    }
    
    // Create the render state.