提交 01b77a13 编写于 作者: M Mr.doob

CubeCamera: Update matrixWorld if parent-less. See #6400.

上级 9de200f1
......@@ -47,6 +47,8 @@ THREE.CubeCamera = function ( near, far, cubeResolution ) {
this.updateCubeMap = function ( renderer, scene ) {
if ( this.parent === undefined ) this.updateMatrixWorld();
var renderTarget = this.renderTarget;
var generateMipmaps = renderTarget.generateMipmaps;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册