Merge pull request #1108 from adroitwhiz/no-origrot

Stop setting item.data.origRot
This commit is contained in:
adroitwhiz 2020-06-15 10:59:16 -04:00 committed by GitHub
commit 013aa47bc9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,10 +37,6 @@ class RotateTool {
for (let i = 0; i < this.rotItems.length; i++) {
const item = this.rotItems[i];
if (!item.data.origRot) {
item.data.origRot = item.rotation;
}
item.rotate(rotAngle - this.prevRot, this.rotGroupPivot);
}
@ -49,7 +45,7 @@ class RotateTool {
}
onMouseUp (event) {
if (event.event.button > 0) return; // only first mouse button
this.rotItems.length = 0;
this.rotGroupPivot = null;
this.prevRot = 90;