Skip to content

Commit ae1098e

Browse files
authored
Editor: Fix equirect backgrounds. (#21690)
1 parent fc68156 commit ae1098e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editor/js/Viewport.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ function Viewport( editor ) {
575575
renderTarget.fromEquirectangularTexture( renderer, backgroundEquirectangularTexture );
576576
renderTarget.toJSON = function () { return null }; // TODO Remove hack
577577

578-
scene.background = renderTarget;
578+
scene.background = renderTarget.texture;
579579

580580
}
581581

0 commit comments

Comments
 (0)