fix(editor): scripts not pausing with the game
This commit is contained in:
parent
73c5bc5a26
commit
1a1db6926d
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue