Explorar o código

Object3D: Ignore RenderTargetTextures as environments.

Mr.doob %!s(int64=3) %!d(string=hai) anos
pai
achega
a5fc01139d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;