Browse Source

* WebGLRenderer: update camera and object matrices if autoUpdateMatrix == true

Mr.doob 15 years ago
parent
commit
369a8661dc
3 changed files with 2 additions and 0 deletions
  1. 0 0
      build/Three.js
  2. 0 0
      build/ThreeDebug.js
  3. 2 0
      src/renderers/WebGLRenderer.js

File diff suppressed because it is too large
+ 0 - 0
build/Three.js


File diff suppressed because it is too large
+ 0 - 0
build/ThreeDebug.js


+ 2 - 0
src/renderers/WebGLRenderer.js

@@ -161,6 +161,8 @@ THREE.WebGLRenderer = function () {
 
 
 				}
 				}
 
 
+				camera.autoUpdateMatrix && camera.updateMatrix();
+				object.autoUpdateMatrix && object.updateMatrix();
 
 
 				viewMatrix.multiply( camera.matrix, object.matrix );
 				viewMatrix.multiply( camera.matrix, object.matrix );
 
 

Some files were not shown because too many files changed in this diff