History

Merge branch 'master' of https://github.com/highfidelity/hifi into virtualEntities

ZappoMan committed 12 years ago

Commit 2baac962 parents 780532b 43ac868110 files · +3160 −871Browse files

Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 110 files). Show all

Unified · Split

libraries/script-engine/src/ScriptEngine.cpp+3−2
@@ -515,8 +515,6 @@ void ScriptEngine::run() { · 514 unmodified lines
515515
516516 qint64 now = usecTimestampNow();
517517 float deltaTime = (float) (now - lastUpdate) / (float) USECS_PER_SECOND;
518− emit update(deltaTime);
519− lastUpdate = now;
520518
521519 if (_engine.hasUncaughtException()) {
522520 int line = _engine.uncaughtExceptionLineNumber();
@@ -524,6 +522,9 @@ void ScriptEngine::run() { · 1 unmodified line
524522 emit errorMessage("Uncaught exception at (" + _fileNameString + ") line" + QString::number(line) + ":" + _engine.uncaughtException().toString());
525523 _engine.clearExceptions();
526524 }
525+
526+ emit update(deltaTime);
527+ lastUpdate = now;
527528 }
528529 emit scriptEnding();
529530