Skip to content

Commit

Permalink
Init mat before inverting
Browse files Browse the repository at this point in the history
  • Loading branch information
umberto-sonnino committed Nov 6, 2019
1 parent bc07b87 commit 1e9b22e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions flare_dart/lib/actor_path.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ abstract class ActorBasePath {
localTransform = Mat2D();
Mat2D.invert(localTransform, parent.worldTransform);
} else if (!_isRootPath) {
localTransform = Mat2D();
// Path isn't root, so get transform in shape space.
if (Mat2D.invert(localTransform, shape.worldTransform)) {
Mat2D.multiply(localTransform, localTransform, worldTransform);
Expand Down

0 comments on commit 1e9b22e

Please sign in to comment.