mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-29 03:32:48 +00:00
Fix crash when we apply a filter that removes a cel
This commit is contained in:
parent
5b6c35aa86
commit
7984e0beb8
@ -442,6 +442,12 @@ void DocView::onAddCel(DocEvent& ev)
|
||||
|
||||
void DocView::onRemoveCel(DocEvent& ev)
|
||||
{
|
||||
// This can happen when we apply a filter that clear the whole cel
|
||||
// and then the cel is removed in a background/job
|
||||
// thread. (e.g. applying a convolution matrix)
|
||||
if (!ui::is_ui_thread())
|
||||
return;
|
||||
|
||||
UIContext::instance()->notifyActiveSiteChanged();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user