Kaynağa Gözat

Editor: Remove linewidth option for wireframes.

Mugen87 5 yıl önce
ebeveyn
işleme
20be40de71
1 değiştirilmiş dosya ile 0 ekleme ve 14 silme
  1. 0 14
      editor/js/Sidebar.Material.js

+ 0 - 14
editor/js/Sidebar.Material.js

@@ -560,11 +560,9 @@ var SidebarMaterial = function ( editor ) {
 
 
 	var materialWireframeRow = new UIRow();
 	var materialWireframeRow = new UIRow();
 	var materialWireframe = new UICheckbox( false ).onChange( update );
 	var materialWireframe = new UICheckbox( false ).onChange( update );
-	var materialWireframeLinewidth = new UINumber( 1 ).setWidth( '60px' ).setRange( 0, 100 ).onChange( update );
 
 
 	materialWireframeRow.add( new UIText( strings.getKey( 'sidebar/material/wireframe' ) ).setWidth( '90px' ) );
 	materialWireframeRow.add( new UIText( strings.getKey( 'sidebar/material/wireframe' ) ).setWidth( '90px' ) );
 	materialWireframeRow.add( materialWireframe );
 	materialWireframeRow.add( materialWireframe );
-	materialWireframeRow.add( materialWireframeLinewidth );
 
 
 	container.add( materialWireframeRow );
 	container.add( materialWireframeRow );
 
 
@@ -1138,12 +1136,6 @@ var SidebarMaterial = function ( editor ) {
 
 
 			}
 			}
 
 
-			if ( material.wireframeLinewidth !== undefined && Math.abs( material.wireframeLinewidth - materialWireframeLinewidth.getValue() ) >= 0.01 ) {
-
-				editor.execute( new SetMaterialValueCommand( editor, currentObject, 'wireframeLinewidth', materialWireframeLinewidth.getValue(), currentMaterialSlot ) );
-
-			}
-
 			refreshUI();
 			refreshUI();
 
 
 		}
 		}
@@ -1599,12 +1591,6 @@ var SidebarMaterial = function ( editor ) {
 
 
 		}
 		}
 
 
-		if ( material.wireframeLinewidth !== undefined ) {
-
-			materialWireframeLinewidth.setValue( material.wireframeLinewidth );
-
-		}
-
 		setRowVisibility();
 		setRowVisibility();
 
 
 	}
 	}