Skip to content

Commit

Permalink
Merge pull request #1011 from ecomfe/fix-transform
Browse files Browse the repository at this point in the history
fix(transform): fix `invTransform` may not be reset when updating transform
  • Loading branch information
plainheart committed May 15, 2023
2 parents 9377dd2 + 055b4e7 commit 1e27245
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/core/Transformable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,11 @@ class Transformable {

let m = this.transform;
if (!(needLocalTransform || parentTransform)) {
m && mIdentity(m);
if (m) {
mIdentity(m);
// reset invTransform
this.invTransform = null;
}
return;
}

Expand Down

0 comments on commit 1e27245

Please sign in to comment.