mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-14 13:21:34 +00:00
Redraw all editors (mainly the preview) after flashing the layer
This commit is contained in:
parent
53ace57e81
commit
3e7bfbb296
@ -1825,12 +1825,16 @@ bool Editor::onProcessMessage(Message* msg)
|
||||
m_document->setExtraCel(ExtraCelRef(nullptr));
|
||||
}
|
||||
|
||||
invalidate();
|
||||
// Redraw all editors (without this the preview editor will
|
||||
// still show the flashing layer).
|
||||
for (auto editor : UIContext::instance()->getAllEditorsIncludingPreview(m_document)) {
|
||||
editor->invalidate();
|
||||
|
||||
// Re-generate painting messages just right now (it looks like
|
||||
// the widget update region is lost after the last
|
||||
// kPaintMessage).
|
||||
flushRedraw();
|
||||
// Re-generate painting messages just right now (it looks
|
||||
// like the widget update region is lost after the last
|
||||
// kPaintMessage).
|
||||
editor->flushRedraw();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user