mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-18 11:42:47 +00:00
Fix timeline is not repainted/invalidated when we switch onion skin option (F3 key) (fix #3806)
This commit is contained in:
parent
9a915355c5
commit
398ca95392
@ -388,6 +388,8 @@ void Timeline::updateUsingEditor(Editor* editor)
|
|||||||
m_firstFrameConn = Preferences::instance().document(m_document)
|
m_firstFrameConn = Preferences::instance().document(m_document)
|
||||||
.timeline.firstFrame.AfterChange.connect([this]{ invalidate(); });
|
.timeline.firstFrame.AfterChange.connect([this]{ invalidate(); });
|
||||||
|
|
||||||
|
m_onionskinConn = docPref.onionskin.AfterChange.connect([this]{ invalidate(); });
|
||||||
|
|
||||||
setFocusStop(true);
|
setFocusStop(true);
|
||||||
regenerateRows();
|
regenerateRows();
|
||||||
setViewScroll(view->timelineScroll());
|
setViewScroll(view->timelineScroll());
|
||||||
@ -400,6 +402,7 @@ void Timeline::detachDocument()
|
|||||||
m_confPopup->closeWindow(nullptr);
|
m_confPopup->closeWindow(nullptr);
|
||||||
|
|
||||||
m_firstFrameConn.disconnect();
|
m_firstFrameConn.disconnect();
|
||||||
|
m_onionskinConn.disconnect();
|
||||||
|
|
||||||
if (m_document) {
|
if (m_document) {
|
||||||
m_thumbnailsPrefConn.disconnect();
|
m_thumbnailsPrefConn.disconnect();
|
||||||
|
@ -424,6 +424,7 @@ namespace app {
|
|||||||
std::unique_ptr<ConfigureTimelinePopup> m_confPopup;
|
std::unique_ptr<ConfigureTimelinePopup> m_confPopup;
|
||||||
obs::scoped_connection m_ctxConn1, m_ctxConn2;
|
obs::scoped_connection m_ctxConn1, m_ctxConn2;
|
||||||
obs::connection m_firstFrameConn;
|
obs::connection m_firstFrameConn;
|
||||||
|
obs::connection m_onionskinConn;
|
||||||
|
|
||||||
// Marching ants stuff to show the range in the clipboard.
|
// Marching ants stuff to show the range in the clipboard.
|
||||||
// TODO merge this with the marching ants of the sprite editor (ui::Editor)
|
// TODO merge this with the marching ants of the sprite editor (ui::Editor)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user