Fix changing playback speed shouldn't stop the animation playback

Regression introduced in 30a88c8e3d5e2c330a0ab969e36bab839aaba9ba
This commit is contained in:
David Capello 2023-03-22 18:39:29 -03:00
parent 1f7f3677f2
commit 0c092cc37c

View File

@ -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();