这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@MrStevns
Copy link
Member

@MrStevns MrStevns commented Sep 22, 2025

I've dabbled with a few solutions and this is the least invasive fix I could come up with.

Fixes a bug where if you had a selection and the image had been transformed, then scrubbing to a different frame would make the new frame inherit the effect.

Before:
transform-bug

After:
transform-bug2

Some users mentioned that this was particularly annoying when scrubbing between frames without explicitly deselecting.

I should mention i'm not fond of adding arbitrary logic to core functions like setLayerIndex and scrubTo. Ideally I would like to maintain the state of the selection and transform as well, by tying the selection to the keyframe but that's a far more invasive which makes no sense for a hotfix release.

@MrStevns MrStevns added this to the 0.7.1 milestone Sep 23, 2025
@MrStevns MrStevns added the 🔹 Minor PR (only one reviewer required) label Sep 23, 2025
@chchwy chchwy self-assigned this Nov 17, 2025
Because some tests uses these functions as well and they don't have a selection manager initialized
@chchwy chchwy force-pushed the selection-transform-quickfix branch from 5f9f1e9 to 535b6d2 Compare November 17, 2025 16:09
@chchwy
Copy link
Member

chchwy commented Nov 18, 2025

Thanks & Good job @MrStevns I am going to merge this into 0.7.1 branch.

Would you like I cherry pick your fix to the master branch or you plan to do a more proper fix?

@chchwy chchwy merged commit ef709c2 into pencil2d:release/0.7.1 Nov 18, 2025
7 checks passed
@github-project-automation github-project-automation bot moved this from Needs Review to Merged in Pull Request Priority Nov 18, 2025
@MrStevns
Copy link
Member Author

MrStevns commented Nov 18, 2025

I am working on reworked model for how we interact with a selection and where the state lives. That upcoming PR should ensure that this workaround becomes obsolete, as such I don't think you need to cherry pick those changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔹 Minor PR (only one reviewer required)

Projects

Development

Successfully merging this pull request may close these issues.

2 participants