File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed
Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -654,7 +654,8 @@ Editor.prototype = {
654654
655655 this . setScene ( await loader . parseAsync ( json . scene ) ) ;
656656
657- if ( json . environment === 'ModelViewer' ) {
657+ if ( json . environment === 'Room' ||
658+ json . environment === 'ModelViewer' /* DEPRECATED */ ) {
658659
659660 this . signals . sceneEnvironmentChanged . dispatch ( json . environment ) ;
660661 this . signals . refreshSidebarEnvironment . dispatch ( ) ;
@@ -682,13 +683,13 @@ Editor.prototype = {
682683
683684 }
684685
685- // honor modelviewer environment
686+ // honor neutral environment
686687
687688 let environment = null ;
688689
689690 if ( this . scene . environment !== null && this . scene . environment . isRenderTargetTexture === true ) {
690691
691- environment = 'ModelViewer ' ;
692+ environment = 'Room ' ;
692693
693694 }
694695
Original file line number Diff line number Diff line change @@ -233,7 +233,7 @@ function SidebarScene( editor ) {
233233 'None' : '' ,
234234 'Background' : 'Background' ,
235235 'Equirectangular' : 'Equirect' ,
236- 'ModelViewer ' : 'ModelViewer '
236+ 'Room ' : 'Room '
237237
238238 } ) . setWidth ( '150px' ) ;
239239 environmentType . setValue ( 'None' ) ;
@@ -435,7 +435,7 @@ function SidebarScene( editor ) {
435435
436436 } else if ( scene . environment . isRenderTargetTexture === true ) {
437437
438- environmentType . setValue ( 'ModelViewer ' ) ;
438+ environmentType . setValue ( 'Room ' ) ;
439439
440440 }
441441
Original file line number Diff line number Diff line change @@ -582,7 +582,7 @@ function Viewport( editor ) {
582582
583583 break ;
584584
585- case 'ModelViewer ' :
585+ case 'Room ' :
586586
587587 scene . environment = pmremGenerator . fromScene ( new RoomEnvironment ( ) , 0.04 ) . texture ;
588588
You can’t perform that action at this time.
0 commit comments