Selaa lähdekoodia

Specify value range for emissive intensity (#25225)

WestLangley 2 vuotta sitten
vanhempi
commit
6557301474
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      editor/js/Sidebar.Material.ColorProperty.js

+ 1 - 1
editor/js/Sidebar.Material.ColorProperty.js

@@ -16,7 +16,7 @@ function SidebarMaterialColorProperty( editor, property, name ) {
 
 
 	if ( property === 'emissive' ) {
 	if ( property === 'emissive' ) {
 
 
-		intensity = new UINumber().setWidth( '30px' ).onChange( onChange );
+		intensity = new UINumber( 1 ).setWidth( '30px' ).setRange( 0, Infinity ).onChange( onChange );
 		container.add( intensity );
 		container.add( intensity );
 
 
 	}
 	}