fix layer and frame duplicate

This commit is contained in:
2019-11-04 15:03:21 +01:00
parent adc64ad42e
commit 4b6316bf68
5 changed files with 38 additions and 13 deletions

View File

@@ -1347,6 +1347,12 @@ int Canvas::anim_duration() const noexcept
return frames;
}
void Canvas::anim_update() noexcept
{
for (auto& l : m_layers)
l->goto_frame(m_anim_frame);
}
void Canvas::anim_goto_frame(int frame) noexcept
{
m_anim_frame = frame;