mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2024-12-22 21:42:30 -05:00
Merge pull request #1100 from adroitwhiz/delete-origpos
Delete item.data.origPos instead of setting it to null
This commit is contained in:
commit
d02fe5fcf0
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