ycw 4 months ago
parent
commit
5bf960214b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      editor/js/commands/SetMaterialRangeCommand.js

+ 1 - 1
editor/js/commands/SetMaterialRangeCommand.js

@@ -24,7 +24,7 @@ class SetMaterialRangeCommand extends Command {
 
 		const material = ( object !== null ) ? editor.getObjectMaterial( object, materialSlot ) : null;
 
-		this.oldRange = ( material !== null && material[ attributeName ] !== undefined ) ? [ ...this.material[ attributeName ] ] : null;
+		this.oldRange = ( material !== null && material[ attributeName ] !== undefined ) ? [ ... material[ attributeName ] ] : null;
 		this.newRange = [ newMinValue, newMaxValue ];
 
 		this.attributeName = attributeName;

粤ICP备19079148号