|
@@ -24,7 +24,7 @@ class SetMaterialRangeCommand extends Command {
|
|
|
|
|
|
|
|
const material = ( object !== null ) ? editor.getObjectMaterial( object, materialSlot ) : null;
|
|
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.newRange = [ newMinValue, newMaxValue ];
|
|
|
|
|
|
|
|
this.attributeName = attributeName;
|
|
this.attributeName = attributeName;
|