浏览代码

Merge remote branch 'alteredq/master'

Mr.doob 14 年之前
父节点
当前提交
71f96a5f1b
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/renderers/WebGLRenderer.js

+ 2 - 1
src/renderers/WebGLRenderer.js

@@ -387,7 +387,6 @@ THREE.WebGLRenderer = function () {
     
     this.setupMatrices = function ( object, camera ) {
         
-        camera.autoUpdateMatrix && camera.updateMatrix();
         object.autoUpdateMatrix && object.updateMatrix();
 
         _viewMatrix.multiply( camera.matrix, object.matrix );
@@ -407,6 +406,8 @@ THREE.WebGLRenderer = function () {
     
 	this.render = function ( scene, camera ) {
         
+        camera.autoUpdateMatrix && camera.updateMatrix();
+
         var o, ol, object;
 
 		if ( this.autoClear ) {