From 0c092cc37c193786bad702c0830b739f5ff808e0 Mon Sep 17 00:00:00 2001 From: David Capello Date: Wed, 22 Mar 2023 18:39:29 -0300 Subject: [PATCH] Fix changing playback speed shouldn't stop the animation playback Regression introduced in 30a88c8e3d5e2c330a0ab969e36bab839aaba9ba --- src/app/ui/editor/editor.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/ui/editor/editor.cpp b/src/app/ui/editor/editor.cpp index 351dde72a..8bbb78697 100644 --- a/src/app/ui/editor/editor.cpp +++ b/src/app/ui/editor/editor.cpp @@ -2793,12 +2793,14 @@ bool Editor::isPlaying() const void Editor::showAnimationSpeedMultiplierPopup() { + const bool wasPlaying = isPlaying(); + if (auto menu = AppMenus::instance()->getAnimationMenu()) { UIContext::SetTargetView setView(m_docView); menu->showPopup(mousePosInDisplay(), display()); } - if (isPlaying()) { + if (wasPlaying) { // Re-play stop();