2
0
Эх сурвалжийг харах

command should be updatable (#28616)

ycw 1 жил өмнө
parent
commit
846825ad0a

+ 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 );