Sfoglia il codice sorgente

Removed redundant check

Klaus Silveira 11 anni fa
parent
commit
55cb5a6752
1 ha cambiato i file con 1 aggiunte e 3 eliminazioni
  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
       // Store the camera state so if we lock, this will become the
       // locked state.
       // locked state.
-
-      if( passType == SPT_Diffuse )
-         smLockedDiffuseCamera = cameraState;
+      smLockedDiffuseCamera = cameraState;
    }
    }
    
    
    // Create the render state.
    // Create the render state.