소스 검색

command should be updatable (#28616)

ycw 1 년 전
부모
커밋
846825ad0a
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  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 );