non-zero default for script.updateDt for cases when it's called outside update()

This commit is contained in:
Kae 2023-11-24 20:44:43 +11:00
parent 9bef78a737
commit 1db9091f50

View File

@ -252,6 +252,7 @@ LuaUpdatableComponent<Base>::LuaUpdatableComponent() {
setUpdateDelta(d);
});
m_lastDt = GlobalTimestep * GlobalTimescale;
Base::addCallbacks("script", move(scriptCallbacks));
}