Ver código fonte

Specify value range for aoMap intensity (#25244)

WestLangley 2 anos atrás
pai
commit
85f282053a
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      editor/js/Sidebar.Material.MapProperty.js

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

@@ -26,7 +26,7 @@ function SidebarMaterialMapProperty( editor, property, name ) {
 
 	if ( property === 'aoMap' ) {
 
-		intensity = new UINumber().setWidth( '30px' ).onChange( onIntensityChange );
+		intensity = new UINumber( 1 ).setWidth( '30px' ).setRange( 0, 1 ).onChange( onIntensityChange );
 		container.add( intensity );
 
 	}