Browse Source

Editor: Added default value to materialSlotSelect. Fixes #11976

Mr.doob 8 years ago
parent
commit
2781c236d8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      editor/js/Sidebar.Material.js

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

@@ -27,7 +27,7 @@ Sidebar.Material = function ( editor ) {
 	materialSlotRow.add( new UI.Text( 'Slot' ).setWidth( '90px' ) );
 
 	var materialSlotSelect =  new UI.Select().setWidth( '170px' ).setFontSize( '12px' ).onChange( update );
-
+	materialSlotSelect.setOptions( { 0: '' } ).setValue( 0 );
 	materialSlotRow.add( materialSlotSelect );
 
 	container.add( materialSlotRow );