mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-04 08:46:09 +00:00
Fix problem playing animation in the current editor and the preview window
This commit is contained in:
parent
11187a8d4f
commit
2bac4d0313
@ -381,8 +381,10 @@ void PreviewEditorWindow::updateUsingEditor(Editor* editor)
|
|||||||
if (miniEditor->isPlaying()) {
|
if (miniEditor->isPlaying()) {
|
||||||
doc::FrameTag* tag = get_animation_tag(editor->sprite(), editor->frame());
|
doc::FrameTag* tag = get_animation_tag(editor->sprite(), editor->frame());
|
||||||
doc::FrameTag* playingTag = get_animation_tag(editor->sprite(), m_refFrame);
|
doc::FrameTag* playingTag = get_animation_tag(editor->sprite(), m_refFrame);
|
||||||
if (tag != playingTag)
|
if (tag == playingTag)
|
||||||
miniEditor->stop();
|
return;
|
||||||
|
|
||||||
|
miniEditor->stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!miniEditor->isPlaying())
|
if (!miniEditor->isPlaying())
|
||||||
|
Loading…
Reference in New Issue
Block a user