From 3d4806e5cee41c5a13dee015e780050ac993e2e7 Mon Sep 17 00:00:00 2001 From: HJfod <60038575+HJfod@users.noreply.github.com> Date: Thu, 23 May 2024 11:55:52 +0300 Subject: [PATCH] fix preview mode resetting zoom level; ready for release! --- src/features/ViewTab/ViewTab.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/features/ViewTab/ViewTab.cpp b/src/features/ViewTab/ViewTab.cpp index 3219869..1af10d8 100644 --- a/src/features/ViewTab/ViewTab.cpp +++ b/src/features/ViewTab/ViewTab.cpp @@ -214,8 +214,10 @@ struct $modify(ViewTabUI, EditorUI) { })); btns->addObject(this->createViewToggleGV("v_prevmode.png"_spr, "0036", [this](bool) { // Let's not be funny and ruin everyone's levels - m_editorLayer->resetMovingObjects(); - this->onStopPlaytest(m_playtestBtn); + if (m_editorLayer->m_playbackMode != PlaybackMode::Not) { + m_editorLayer->resetMovingObjects(); + this->onStopPlaytest(m_playtestBtn); + } m_editorLayer->updateEditorMode(); })); btns->addObject(this->createViewToggle(