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

Conversation

@MrStevns
Copy link
Member

@MrStevns MrStevns commented Feb 21, 2021

Fix cache issue caused by onFrameModified not being called when drawing on previous keyframe, making the latest stroke invisible upon release event.

closes #1576

@MrStevns MrStevns force-pushed the cache-bug-drawing-on-previous branch from e8d3e10 to 498dcd5 Compare February 21, 2021 12:22
@MrStevns MrStevns changed the title Fix cache bug when drawing on previous layer Fix cache bug when drawing on previous keyframe Feb 21, 2021
- Frame modification is never called because
@MrStevns MrStevns force-pushed the cache-bug-drawing-on-previous branch from 498dcd5 to a98600f Compare February 21, 2021 12:36
@MrStevns
Copy link
Member Author

MrStevns commented May 3, 2021

This has been sitting for quite some time and it's a very small change. There should be no side effects from calling onFrameModified(previousKeyFrame->pos()) in this case, except clearing the cache which will fix the bug.

Therefore I will now merge the PR.

@MrStevns MrStevns merged commit 0e17046 into pencil2d:master May 3, 2021
@MrStevns MrStevns deleted the cache-bug-drawing-on-previous branch May 3, 2021 15:22
@chchwy chchwy added this to the 0.7.0 milestone Jul 15, 2021
@MrStevns MrStevns modified the milestones: 0.7.0, v0.6.7 Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

Undoing a stroke with "keep drawing on previous key-frame" leads to weird behaviour

3 participants