non-zero default for script.updateDt for cases when it's called outside update()
This commit is contained in:
parent
9bef78a737
commit
1db9091f50
@ -252,6 +252,7 @@ LuaUpdatableComponent<Base>::LuaUpdatableComponent() {
|
|||||||
setUpdateDelta(d);
|
setUpdateDelta(d);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
m_lastDt = GlobalTimestep * GlobalTimescale;
|
||||||
Base::addCallbacks("script", move(scriptCallbacks));
|
Base::addCallbacks("script", move(scriptCallbacks));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user