Skip to content

Commit

Permalink
Editor: Fix equirect backgrounds. (#21690)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugen87 committed Apr 21, 2021
1 parent fc68156 commit ae1098e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/js/Viewport.js
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ function Viewport( editor ) {
renderTarget.fromEquirectangularTexture( renderer, backgroundEquirectangularTexture );
renderTarget.toJSON = function () { return null }; // TODO Remove hack

scene.background = renderTarget;
scene.background = renderTarget.texture;

}

Expand Down

0 comments on commit ae1098e

Please sign in to comment.