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

Conversation

@J5lx
Copy link
Member

@J5lx J5lx commented Oct 16, 2022

This fixes a bug where, when deleting the last layer, the layer deletion was performed before actually switching away from the layer so that, for a brief moment, the current layer didn’t actually exist. This issue must have been around for a while, but it was recently exposed through the addition of the onCurrentLayerWillChange signal in #1724. Unfortunately I missed that while reviewing the PR, so on current master this bug means that deleting the last layer while it is active will actually result in a bunch of assertions to fire before the program ultimately crashes.

@J5lx J5lx requested review from MrStevns and removed request for MrStevns October 16, 2022 13:27
Copy link
Member

@MrStevns MrStevns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes looks good to me, you're right.. this must has been a bug for a while but just recently exposed.

@MrStevns MrStevns merged commit 3e4adb0 into pencil2d:master Oct 16, 2022
@J5lx J5lx deleted the fixes/last-layer-deletion branch October 16, 2022 15:20
@MrStevns MrStevns added this to the v0.6.7 milestone Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants