Fix problem playing animation in the current editor and the preview window

This commit is contained in:
David Capello 2017-01-31 10:49:59 -03:00
parent 11187a8d4f
commit 2bac4d0313

View File

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