瀏覽代碼

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

Mr.doob 15 年之前
父節點
當前提交
369a8661dc
共有 3 個文件被更改,包括 2 次插入0 次删除
  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 );
 

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