Skip to content

Commit

Permalink
fix set command (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
ostatni5 committed Nov 18, 2021
1 parent 4c5d98a commit 4505d2a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ThreeEditor/js/commands/SetDetectGeometryCommand.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class SetDetectGeometryCommand extends Command {
this.object = object;
this.oldData = object.getData();
this.newData = {};
Object.entries(object.getData()).forEach(([key,_]) => {
Object.entries(object.getData()).forEach(([key, _]) => {
this.newData[key] = newData[key] ?? this.oldData[key];
});
}
Expand All @@ -45,9 +45,9 @@ class SetDetectGeometryCommand extends Command {
this.editor.signals.sceneGraphChanged.dispatch();
}

update(cmd) {
update(command) {

this.newGeometry = cmd.newGeometry;
this.newData = command.newData;

}

Expand Down

0 comments on commit 4505d2a

Please sign in to comment.