Don't set the palette if we change the current frame of an inactive Editor

This happens when we press the play button in one Editor (it changes to
PlayState) and we start using other Editor. We don't want to change
the current palette/ColorBar for that animation playing in the background.

Fix #676
This commit is contained in:
David Capello 2015-05-18 21:34:30 -03:00
parent e973aa0cc7
commit 288235fe32

View File

@ -79,6 +79,7 @@ public:
void onAfterFrameChanged(Editor* editor) override {
updatePreviewEditor(this);
if (isActive())
set_current_palette(editor->sprite()->palette(editor->frame()), true);
}