From 2bac4d03134afb5b3ef9300d15dca2e950f9f492 Mon Sep 17 00:00:00 2001 From: David Capello Date: Tue, 31 Jan 2017 10:49:59 -0300 Subject: [PATCH] Fix problem playing animation in the current editor and the preview window --- src/app/ui/preview_editor.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app/ui/preview_editor.cpp b/src/app/ui/preview_editor.cpp index 1e4b2d2a9..8477e968d 100644 --- a/src/app/ui/preview_editor.cpp +++ b/src/app/ui/preview_editor.cpp @@ -381,8 +381,10 @@ void PreviewEditorWindow::updateUsingEditor(Editor* editor) if (miniEditor->isPlaying()) { doc::FrameTag* tag = get_animation_tag(editor->sprite(), editor->frame()); doc::FrameTag* playingTag = get_animation_tag(editor->sprite(), m_refFrame); - if (tag != playingTag) - miniEditor->stop(); + if (tag == playingTag) + return; + + miniEditor->stop(); } if (!miniEditor->isPlaying())