Skip to content

Commit

Permalink
command should be updatable (#28616)
Browse files Browse the repository at this point in the history
  • Loading branch information
ycw authored Jun 10, 2024
1 parent 5858ca3 commit 846825a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions editor/js/commands/SetShadowValueCommand.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -37,6 +38,12 @@ class SetShadowValueCommand extends Command {

}

update( cmd ) {

this.newValue = cmd.newValue;

}

toJSON() {

const output = super.toJSON( this );
Expand Down

0 comments on commit 846825a

Please sign in to comment.