mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2025-01-08 13:42:00 -05:00
Delete item.data.origPos instead of nulling it
This commit is contained in:
parent
87e01639c0
commit
813b34c981
1 changed files with 3 additions and 3 deletions
|
@ -206,10 +206,10 @@ class MoveTool {
|
|||
let moved = false;
|
||||
// resetting the items origin point for the next usage
|
||||
for (const item of this.selectedItems) {
|
||||
if (item.data && item.data.origPos && !item.position.equals(item.data.origPos)) {
|
||||
moved = true;
|
||||
if (item.data.origPos) {
|
||||
if (!item.position.equals(item.data.origPos)) moved = true;
|
||||
delete item.data.origPos;
|
||||
}
|
||||
item.data.origPos = null;
|
||||
}
|
||||
this.selectedItems = null;
|
||||
this.selectionCenter = null;
|
||||
|
|
Loading…
Reference in a new issue