Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 3 files). Show all
Unified · Split
| @@ -894,7 +894,7 @@ void ScriptEngine::run() { · 893 unmodified lines | ||
| 894 | 894 | qint64 now = usecTimestampNow(); |
| 895 | 895 | |
| 896 | 896 | // we check for 'now' in the past in case people set their clock back |
| 897 | − if (_isPhysicsEnabledFunc() && _lastUpdate < now) { | |
| 897 | + if (_emitScriptUpdates() && _lastUpdate < now) { | |
| 898 | 898 | float deltaTime = (float) (now - _lastUpdate) / (float) USECS_PER_SECOND; |
| 899 | 899 | if (!_isFinished) { |
| 900 | 900 | auto preUpdate = clock::now(); |