|
@@ -26,7 +26,7 @@ Sidebar.Material = function ( editor ) {
|
|
|
|
|
|
materialSlotRow.add( new UI.Text( 'Slot' ).setWidth( '90px' ) );
|
|
materialSlotRow.add( new UI.Text( 'Slot' ).setWidth( '90px' ) );
|
|
|
|
|
|
- var materialSlotSelect = new UI.Select().setWidth( '170px' ).setFontSize( '12px' ).onChange( update );
|
|
|
|
|
|
+ var materialSlotSelect = new UI.Select().setWidth( '170px' ).setFontSize( '12px' ).onChange( update );
|
|
materialSlotSelect.setOptions( { 0: '' } ).setValue( 0 );
|
|
materialSlotSelect.setOptions( { 0: '' } ).setValue( 0 );
|
|
materialSlotRow.add( materialSlotSelect );
|
|
materialSlotRow.add( materialSlotSelect );
|
|
|
|
|
|
@@ -518,7 +518,7 @@ Sidebar.Material = function ( editor ) {
|
|
|
|
|
|
if ( currentMaterialSlot !== previousSelectedSlot ) refreshUI( true );
|
|
if ( currentMaterialSlot !== previousSelectedSlot ) refreshUI( true );
|
|
|
|
|
|
- material = editor.getObjectMaterial( currentObject, currentMaterialSlot )
|
|
|
|
|
|
+ material = editor.getObjectMaterial( currentObject, currentMaterialSlot )
|
|
|
|
|
|
var textureWarning = false;
|
|
var textureWarning = false;
|
|
var objectHasUvs = false;
|
|
var objectHasUvs = false;
|