-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix doubled translation from dragging layers sharing an upstream Transform node #1681
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
Conversation
|
@0HyperCube you're better than me at understanding this part of the code and the implications of this change. Could you please see if this looks good to go? Thanks. |
|
@shipp02 please leave a comment in the original issue so I can assign it to you. |
|
I finally got a chance to do some QA testing on this. The first thing I noticed is that Dragging individual layers is completely broken. Just draw two layers and try dragging each of them on after the other. This is probably caused by your choice to store the transform in the Select tool's struct. I'd avoid attempting to persist state since this should be a stateless problem as far as I can tell. |
|
@Keavon persisting state is necessary to implement the first of my suggested solutions from the issue:
|
|
Thank you for confirming my approach!
I was in the middle of finals hence the lack of a response from me in the
last week.
I will fix the bug @Keavon found while he was running QA.
…On Fri, Mar 22, 2024, 10:02 AM 0HyperCube ***@***.***> wrote:
@Keavon <https://github.com/Keavon> persisting state is necessary to
implement the first of my suggested solutions from the issue:
In select_tool.rs, instead of applying a delta to the current transform,
store the transform at the start of the drag and compute the new transform
based on that (similar to how dragging the selection bounds works)
—
Reply to this email directly, view it on GitHub
<#1681 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMI6FTXCBTQET5GTNIW5NJDYZRPZZAVCNFSM6AAAAABERUTULCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJVGUZDEMRYGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
|
@shipp02 just checking if you've been able to continue addressing this. |
|
I was able to reproduce the regression you mentioned but wasn't sure how to fix it. |
|
I'm going to close this for now but feel free to reopen it if you're able to continue making progress. |
Hello,
This fixes above issue, demo:
Screen.Recording.2024-03-12.at.12.00.48.AM.mov
Closes #1529