Browse Source

Editor: Fix equirect backgrounds. (#21690)

Michael Herzog 4 years ago
parent
commit
ae1098eeff
1 changed files with 1 additions and 1 deletions
  1. 1 1
      editor/js/Viewport.js

+ 1 - 1
editor/js/Viewport.js

@@ -575,7 +575,7 @@ function Viewport( editor ) {
 					renderTarget.fromEquirectangularTexture( renderer, backgroundEquirectangularTexture );
 					renderTarget.fromEquirectangularTexture( renderer, backgroundEquirectangularTexture );
 					renderTarget.toJSON = function () { return null }; // TODO Remove hack
 					renderTarget.toJSON = function () { return null }; // TODO Remove hack
 
 
-					scene.background = renderTarget;
+					scene.background = renderTarget.texture;
 
 
 				}
 				}