Browse Source

command should be updatable (#28616)

ycw 1 year ago
parent
commit
846825ad0a
1 changed files with 7 additions and 0 deletions
  1. 7 0
      editor/js/commands/SetShadowValueCommand.js

+ 7 - 0
editor/js/commands/SetShadowValueCommand.js

@@ -15,6 +15,7 @@ class SetShadowValueCommand extends Command {
 
 		this.type = 'SetShadowValueCommand';
 		this.name = editor.strings.getKey( 'command/SetShadowValue' ) + ': ' + attributeName;
+		this.updatable = true;
 
 		this.object = object;
 		this.attributeName = attributeName;
@@ -37,6 +38,12 @@ class SetShadowValueCommand extends Command {
 
 	}
 
+	update( cmd ) {
+
+		this.newValue = cmd.newValue;
+
+	}
+
 	toJSON() {
 
 		const output = super.toJSON( this );