mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-27 02:37:16 +00:00
Expand groups when we change the active layer on timeline
This commit is contained in:
parent
5b5764e40e
commit
9b9239ab05
@ -306,6 +306,18 @@ void Timeline::setLayer(Layer* layer)
|
||||
ASSERT(m_editor != NULL);
|
||||
|
||||
m_layer = layer;
|
||||
|
||||
// Expand all parents
|
||||
if (m_layer) {
|
||||
LayerGroup* group = m_layer->parent();
|
||||
while (group != m_layer->sprite()->root()) {
|
||||
// Expand this group
|
||||
group->setCollapsed(false);
|
||||
group = group->parent();
|
||||
}
|
||||
regenerateLayers();
|
||||
}
|
||||
|
||||
invalidate();
|
||||
|
||||
if (m_editor->layer() != layer)
|
||||
|
Loading…
x
Reference in New Issue
Block a user