-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nested group matrix should not be reset. #1711
Comments
When a group had `applyMatrix` set to `false`, when its parent's matrix was applied, its matrix was applied to its children then it was reset. This makes sure that in this case, parent matrix is only added to child matrix but not applied to child's children and that child's matrix is not reset. Closes paperjs#1711
When a group had `applyMatrix` set to `false`, when its parent's matrix was applied, its matrix was applied to its children then it was reset. This makes sure that in this case, parent matrix is only added to child matrix but not applied to child's children and that child's matrix is not reset. Closes #1711
@sasensi merging this has actually broke the Could you look into what's going wrong here? |
This is blocking the release of a new version… We should also implement a unit test for whatever was broken here. |
Hello. I've made a sketch representing the broken example. |
@lehni, sorry for the delay, I am overflowed by work currently. |
@sasensi no worries, I know too well how that goes ;) Yes, my change fixes the new bug as well as the original issue here. Your test is still there and passes. Should be all good! |
@sasensi …and I added a test for the new issue here: |
@lehni, ok, great, thank you ! |
Description/Steps to reproduce
Originally reported here.
When two groups are nested and the parent has matrix applied and the child has matrix not applied.
If we first do a transformation on the child, its matrix is updated as expected.
But if we then do a transformation on the parent, the child matrix is unexpectedly reset.
Link to reproduction test-case
Here is a sketch reproducing the issue.
Expected result
Child matrix should not be reset.
The text was updated successfully, but these errors were encountered: