Browse Source

Object3D: Ignore RenderTargetTextures as environments.

Mr.doob 3 years ago
parent
commit
a5fc01139d
1 changed files with 1 additions and 1 deletions
  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;