瀏覽代碼

Editor: Clean up.

Mr.doob 9 年之前
父節點
當前提交
bb3b9d0072
共有 1 個文件被更改,包括 0 次插入12 次删除
  1. 0 12
      editor/js/Sidebar.Material.js

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

@@ -651,12 +651,6 @@ Sidebar.Material = function ( editor ) {
 
 					}
 
-					if ( material.displacementScale !== materialDisplacementScale.getValue() ) {
-
-						editor.execute( new SetMaterialValueCommand( currentObject, 'displacementScale', materialDisplacementScale.getValue() ) );
-
-					}
-
 				} else {
 
 					if ( roughnessMapEnabled ) textureWarning = true;
@@ -678,12 +672,6 @@ Sidebar.Material = function ( editor ) {
 
 					}
 
-					if ( material.displacementScale !== materialDisplacementScale.getValue() ) {
-
-						editor.execute( new SetMaterialValueCommand( currentObject, 'displacementScale', materialDisplacementScale.getValue() ) );
-
-					}
-
 				} else {
 
 					if ( metalnessMapEnabled ) textureWarning = true;