Delete item.data.origPos instead of nulling it

This commit is contained in:
adroitwhiz 2020-05-29 14:47:43 -04:00
parent 87e01639c0
commit 813b34c981

View file

@ -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;