2
0
Mr.doob 4 жил өмнө
parent
commit
c513508c17

+ 9 - 9
editor/js/Sidebar.Scene.js

@@ -166,7 +166,7 @@ function SidebarScene( editor ) {
 
 
 	var backgroundType = new UISelect().setOptions( {
 	var backgroundType = new UISelect().setOptions( {
 
 
-		'None': 'None',
+		'None': '',
 		'Color': 'Color',
 		'Color': 'Color',
 		'Texture': 'Texture',
 		'Texture': 'Texture',
 		'Equirectangular': 'Equirect'
 		'Equirectangular': 'Equirect'
@@ -215,7 +215,7 @@ function SidebarScene( editor ) {
 
 
 	var environmentType = new UISelect().setOptions( {
 	var environmentType = new UISelect().setOptions( {
 
 
-		'None': 'None',
+		'None': '',
 		'Background': 'Background'
 		'Background': 'Background'
 
 
 	} ).setWidth( '150px' );
 	} ).setWidth( '150px' );
@@ -260,7 +260,7 @@ function SidebarScene( editor ) {
 	var fogTypeRow = new UIRow();
 	var fogTypeRow = new UIRow();
 	var fogType = new UISelect().setOptions( {
 	var fogType = new UISelect().setOptions( {
 
 
-		'None': 'None',
+		'None': '',
 		'Fog': 'Linear',
 		'Fog': 'Linear',
 		'FogExp2': 'Exponential'
 		'FogExp2': 'Exponential'
 
 
@@ -353,7 +353,7 @@ function SidebarScene( editor ) {
 
 
 			if ( scene.background.isColor ) {
 			if ( scene.background.isColor ) {
 
 
-				backgroundType.setValue( "Color" );
+				backgroundType.setValue( 'Color' );
 				backgroundColor.setHexValue( scene.background.getHex() );
 				backgroundColor.setHexValue( scene.background.getHex() );
 				backgroundTexture.setValue( null );
 				backgroundTexture.setValue( null );
 				backgroundEquirectangularTexture.setValue( null );
 				backgroundEquirectangularTexture.setValue( null );
@@ -364,7 +364,7 @@ function SidebarScene( editor ) {
 
 
 		} else {
 		} else {
 
 
-			backgroundType.setValue( "None" );
+			backgroundType.setValue( 'None' );
 			backgroundTexture.setValue( null );
 			backgroundTexture.setValue( null );
 			backgroundEquirectangularTexture.setValue( null );
 			backgroundEquirectangularTexture.setValue( null );
 
 
@@ -376,7 +376,7 @@ function SidebarScene( editor ) {
 
 
 		} else {
 		} else {
 
 
-			environmentType.setValue( "None" );
+			environmentType.setValue( 'None' );
 
 
 		}
 		}
 
 
@@ -386,20 +386,20 @@ function SidebarScene( editor ) {
 
 
 			if ( scene.fog.isFog ) {
 			if ( scene.fog.isFog ) {
 
 
-				fogType.setValue( "Fog" );
+				fogType.setValue( 'Fog' );
 				fogNear.setValue( scene.fog.near );
 				fogNear.setValue( scene.fog.near );
 				fogFar.setValue( scene.fog.far );
 				fogFar.setValue( scene.fog.far );
 
 
 			} else if ( scene.fog.isFogExp2 ) {
 			} else if ( scene.fog.isFogExp2 ) {
 
 
-				fogType.setValue( "FogExp2" );
+				fogType.setValue( 'FogExp2' );
 				fogDensity.setValue( scene.fog.density );
 				fogDensity.setValue( scene.fog.density );
 
 
 			}
 			}
 
 
 		} else {
 		} else {
 
 
-			fogType.setValue( "None" );
+			fogType.setValue( 'None' );
 
 
 		}
 		}