Ver código fonte

Update code style

Temdog007 6 anos atrás
pai
commit
cc96ff0692
1 arquivos alterados com 5 adições e 4 exclusões
  1. 5 4
      editor/js/Sidebar.Material.js

+ 5 - 4
editor/js/Sidebar.Material.js

@@ -624,12 +624,13 @@ Sidebar.Material = function ( editor ) {
 
 			}
 
-			if ( material.depthPacking !== undefined) {
+			if ( material.depthPacking !== undefined ) {
+
+				var depthPacking = parseInt( materialDepthPacking.getValue() );
+				if ( material.depthPacking !== depthPacking ) {
 
-				var depthPacking = parseInt(materialDepthPacking.getValue());
-				if(material.depthPacking !== depthPacking)
-				{
 					editor.execute( new SetMaterialValueCommand( currentObject, 'depthPacking', depthPacking, currentMaterialSlot ) );
+
 				}
 
 			}