提交 67c7b155 编写于 作者: M Mr.doob

Reverting Camera.update as how it was before (as it turned out that wasn't the...

Reverting Camera.update as how it was before (as it turned out that wasn't the problem). This needs more testing.
上级 3960e5c8
......@@ -77,19 +77,30 @@ THREE.Camera.prototype.update = function ( parentMatrixWorld, forceUpdate, camer
} else {
if ( parentMatrixWorld ) {
if ( this.matrixAutoUpdate ) {
this.matrixWorld.multiply( parentMatrixWorld, this.matrix );
forceUpdate |= this.updateMatrix();
} else {
}
this.matrixWorld.copy( this.matrix );
if ( forceUpdate || this.matrixWorldNeedsUpdate ) {
}
if ( parentMatrixWorld ) {
THREE.Matrix4.makeInvert( this.matrixWorld, this.matrixWorldInverse );
this.matrixWorld.multiply( parentMatrixWorld, this.matrix );
forceUpdate = true;
} else {
this.matrixWorld.copy( this.matrix );
}
this.matrixWorldNeedsUpdate = false;
forceUpdate = true;
THREE.Matrix4.makeInvert( this.matrixWorld, this.matrixWorldInverse );
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册