Show mini editor window again after PlayAnimationCommand

This commit is contained in:
David Capello 2014-08-09 18:37:23 -03:00
parent a5d6af7d87
commit 93c6967409

View File

@ -198,10 +198,8 @@ void PlayAnimationCommand::onExecute(Context* context)
// Hide mini editor
MiniEditorWindow* miniEditor = App::instance()->getMainWindow()->getMiniEditor();
bool enabled = (miniEditor ? miniEditor->isMiniEditorEnabled(): false);
if (enabled) {
miniEditor->setVisible(false);
if (enabled)
miniEditor->setMiniEditorEnabled(false);
}
PlayAniWindow window(context, current_editor);
window.openWindowInForeground();