|
@@ -424,7 +424,11 @@ function SidebarScene( editor ) {
|
|
|
|
|
|
if ( scene.environment ) {
|
|
if ( scene.environment ) {
|
|
|
|
|
|
- if ( scene.environment.mapping === THREE.EquirectangularReflectionMapping ) {
|
|
|
|
|
|
+ if ( scene.background && scene.background.isTexture && scene.background.uuid === scene.environment.uuid ) {
|
|
|
|
+
|
|
|
|
+ environmentType.setValue( 'Background' );
|
|
|
|
+
|
|
|
|
+ } else if ( scene.environment.mapping === THREE.EquirectangularReflectionMapping ) {
|
|
|
|
|
|
environmentType.setValue( 'Equirectangular' );
|
|
environmentType.setValue( 'Equirectangular' );
|
|
environmentEquirectangularTexture.setValue( scene.environment );
|
|
environmentEquirectangularTexture.setValue( scene.environment );
|
|
@@ -563,6 +567,17 @@ function SidebarScene( editor ) {
|
|
|
|
|
|
} );
|
|
} );
|
|
|
|
|
|
|
|
+ signals.sceneBackgroundChanged.add( function () {
|
|
|
|
+
|
|
|
|
+ if ( environmentType.getValue() === 'Background' ) {
|
|
|
|
+
|
|
|
|
+ onEnvironmentChanged();
|
|
|
|
+ refreshEnvironmentUI();
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ } );
|
|
|
|
+
|
|
return container;
|
|
return container;
|
|
|
|
|
|
}
|
|
}
|