瀏覽代碼

Object3D: Ignore RenderTargetTextures as environments.

Mr.doob 3 年之前
父節點
當前提交
a5fc01139d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/core/Object3D.js

+ 1 - 1
src/core/Object3D.js

@@ -721,7 +721,7 @@ class Object3D extends EventDispatcher {
 
 
 			}
 			}
 
 
-			if ( this.environment && this.environment.isTexture ) {
+			if ( this.environment && this.environment.isTexture && this.environment.isRenderTargetTexture !== true ) {
 
 
 				object.environment = this.environment.toJSON( meta ).uuid;
 				object.environment = this.environment.toJSON( meta ).uuid;