mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-07 19:06:39 +00:00
Fix invalidation of the Timeline range on kMouseDownMessage
This commit is contained in:
parent
559c3df6de
commit
761ccd8217
@ -747,6 +747,7 @@ bool Timeline::onProcessMessage(Message* msg)
|
|||||||
clearAndInvalidateRange();
|
clearAndInvalidateRange();
|
||||||
m_range.startRange(m_layer, m_clk.frame, Range::kFrames);
|
m_range.startRange(m_layer, m_clk.frame, Range::kFrames);
|
||||||
m_startRange = m_range;
|
m_startRange = m_range;
|
||||||
|
invalidateRange();
|
||||||
|
|
||||||
setFrame(m_clk.frame, true);
|
setFrame(m_clk.frame, true);
|
||||||
}
|
}
|
||||||
@ -772,6 +773,7 @@ bool Timeline::onProcessMessage(Message* msg)
|
|||||||
m_range.startRange(m_rows[m_clk.layer].layer(),
|
m_range.startRange(m_rows[m_clk.layer].layer(),
|
||||||
m_frame, Range::kLayers);
|
m_frame, Range::kLayers);
|
||||||
m_startRange = m_range;
|
m_startRange = m_range;
|
||||||
|
invalidateRange();
|
||||||
|
|
||||||
// Did the user select another layer?
|
// Did the user select another layer?
|
||||||
if (old_layer != m_clk.layer) {
|
if (old_layer != m_clk.layer) {
|
||||||
@ -911,6 +913,7 @@ bool Timeline::onProcessMessage(Message* msg)
|
|||||||
m_range.startRange(m_rows[m_clk.layer].layer(),
|
m_range.startRange(m_rows[m_clk.layer].layer(),
|
||||||
m_clk.frame, Range::kCels);
|
m_clk.frame, Range::kCels);
|
||||||
m_startRange = m_range;
|
m_startRange = m_range;
|
||||||
|
invalidateRange();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Select the new clicked-part.
|
// Select the new clicked-part.
|
||||||
|
Loading…
Reference in New Issue
Block a user