3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -654,7 +654,8 @@ Editor.prototype = {
654
654
655
655
this . setScene ( await loader . parseAsync ( json . scene ) ) ;
656
656
657
- if ( json . environment === 'ModelViewer' ) {
657
+ if ( json . environment === 'Room' ||
658
+ json . environment === 'ModelViewer' /* DEPRECATED */ ) {
658
659
659
660
this . signals . sceneEnvironmentChanged . dispatch ( json . environment ) ;
660
661
this . signals . refreshSidebarEnvironment . dispatch ( ) ;
@@ -682,13 +683,13 @@ Editor.prototype = {
682
683
683
684
}
684
685
685
- // honor modelviewer environment
686
+ // honor neutral environment
686
687
687
688
let environment = null ;
688
689
689
690
if ( this . scene . environment !== null && this . scene . environment . isRenderTargetTexture === true ) {
690
691
691
- environment = 'ModelViewer ' ;
692
+ environment = 'Room ' ;
692
693
693
694
}
694
695
Original file line number Diff line number Diff line change @@ -233,7 +233,7 @@ function SidebarScene( editor ) {
233
233
'None' : '' ,
234
234
'Background' : 'Background' ,
235
235
'Equirectangular' : 'Equirect' ,
236
- 'ModelViewer ' : 'ModelViewer '
236
+ 'Room ' : 'Room '
237
237
238
238
} ) . setWidth ( '150px' ) ;
239
239
environmentType . setValue ( 'None' ) ;
@@ -435,7 +435,7 @@ function SidebarScene( editor ) {
435
435
436
436
} else if ( scene . environment . isRenderTargetTexture === true ) {
437
437
438
- environmentType . setValue ( 'ModelViewer ' ) ;
438
+ environmentType . setValue ( 'Room ' ) ;
439
439
440
440
}
441
441
Original file line number Diff line number Diff line change @@ -582,7 +582,7 @@ function Viewport( editor ) {
582
582
583
583
break ;
584
584
585
- case 'ModelViewer ' :
585
+ case 'Room ' :
586
586
587
587
scene . environment = pmremGenerator . fromScene ( new RoomEnvironment ( ) , 0.04 ) . texture ;
588
588
0 commit comments