Skip to content

Commit

Permalink
Editor: Clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Feb 7, 2021
1 parent 2f30e75 commit c513508
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions editor/js/Sidebar.Scene.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ function SidebarScene( editor ) {

var backgroundType = new UISelect().setOptions( {

'None': 'None',
'None': '',
'Color': 'Color',
'Texture': 'Texture',
'Equirectangular': 'Equirect'
Expand Down Expand Up @@ -215,7 +215,7 @@ function SidebarScene( editor ) {

var environmentType = new UISelect().setOptions( {

'None': 'None',
'None': '',
'Background': 'Background'

} ).setWidth( '150px' );
Expand Down Expand Up @@ -260,7 +260,7 @@ function SidebarScene( editor ) {
var fogTypeRow = new UIRow();
var fogType = new UISelect().setOptions( {

'None': 'None',
'None': '',
'Fog': 'Linear',
'FogExp2': 'Exponential'

Expand Down Expand Up @@ -353,7 +353,7 @@ function SidebarScene( editor ) {

if ( scene.background.isColor ) {

backgroundType.setValue( "Color" );
backgroundType.setValue( 'Color' );
backgroundColor.setHexValue( scene.background.getHex() );
backgroundTexture.setValue( null );
backgroundEquirectangularTexture.setValue( null );
Expand All @@ -364,7 +364,7 @@ function SidebarScene( editor ) {

} else {

backgroundType.setValue( "None" );
backgroundType.setValue( 'None' );
backgroundTexture.setValue( null );
backgroundEquirectangularTexture.setValue( null );

Expand All @@ -376,7 +376,7 @@ function SidebarScene( editor ) {

} else {

environmentType.setValue( "None" );
environmentType.setValue( 'None' );

}

Expand All @@ -386,20 +386,20 @@ function SidebarScene( editor ) {

if ( scene.fog.isFog ) {

fogType.setValue( "Fog" );
fogType.setValue( 'Fog' );
fogNear.setValue( scene.fog.near );
fogFar.setValue( scene.fog.far );

} else if ( scene.fog.isFogExp2 ) {

fogType.setValue( "FogExp2" );
fogType.setValue( 'FogExp2' );
fogDensity.setValue( scene.fog.density );

}

} else {

fogType.setValue( "None" );
fogType.setValue( 'None' );

}

Expand Down

0 comments on commit c513508

Please sign in to comment.