From 1a1db6926dafde46742ae1213e10b0fd89792085 Mon Sep 17 00:00:00 2001 From: maelstrom Date: Thu, 11 Sep 2025 17:37:56 +0200 Subject: [PATCH] fix(editor): scripts not pausing with the game --- editor/placedocument.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/editor/placedocument.cpp b/editor/placedocument.cpp index 2d1660c..3408404 100644 --- a/editor/placedocument.cpp +++ b/editor/placedocument.cpp @@ -95,8 +95,9 @@ void PlaceDocument::timerEvent(QTimerEvent* evt) { placeWidget->repaint(); placeWidget->updateCycle(); + if (_runState != RUN_RUNNING) return; gDataModel->GetService()->RunSleepingThreads(); - if (_runState == RUN_RUNNING) gDataModel->GetService()->PhysicsStep(0.033); + gDataModel->GetService()->PhysicsStep(0.033); }