diff --git a/editor/js/Sidebar.Material.js b/editor/js/Sidebar.Material.js index 46c1630c94465b3f9a3152a0abd6148c63b68e06..46913805e59792f68828d932129c5e255ed2e89b 100644 --- a/editor/js/Sidebar.Material.js +++ b/editor/js/Sidebar.Material.js @@ -1011,9 +1011,7 @@ Sidebar.Material = function ( editor ) { if ( material.length === 0 ) return; - if( material.length == 0 ) return; - - material = material[ currentMaterialSlot ] + material = material[ currentMaterialSlot ]; } else {