fix(editor): scripts not pausing with the game

This commit is contained in:
maelstrom 2025-09-11 17:37:56 +02:00
parent 73c5bc5a26
commit 1a1db6926d

View file

@ -95,8 +95,9 @@ void PlaceDocument::timerEvent(QTimerEvent* evt) {
placeWidget->repaint();
placeWidget->updateCycle();
if (_runState != RUN_RUNNING) return;
gDataModel->GetService<ScriptContext>()->RunSleepingThreads();
if (_runState == RUN_RUNNING) gDataModel->GetService<Workspace>()->PhysicsStep(0.033);
gDataModel->GetService<Workspace>()->PhysicsStep(0.033);
}