提交 7f0346f3 编写于 作者: G gman

Update WebGL Renderer so cameras can have parents

上级 b5311909
......@@ -3693,7 +3693,14 @@ THREE.WebGLRenderer = function ( parameters ) {
_this.info.render.vertices = 0;
_this.info.render.faces = 0;
camera.matrixAutoUpdate && camera.update( undefined, true );
// hack: find parent of camera.
if (camera.matrixAutoUpdate) {
var parent = camera;
while ( parent.parent ) {
parent = parent.parent;
}
parent.update( undefined, true );
}
scene.update( undefined, false, camera );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册