Skip to content

Commit

Permalink
fix preview mode resetting zoom level; ready for release!
Browse files Browse the repository at this point in the history
  • Loading branch information
HJfod committed May 23, 2024
1 parent 22d3c2f commit 3d4806e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/features/ViewTab/ViewTab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 3d4806e

Please sign in to comment.