mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-28 07:59:37 -06:00
Restored a few asserts on lua commands
This commit is contained in:
@@ -122,6 +122,7 @@ int startPlayback(lua_State* L, interaction::KeyframeTimeRef timeMode,
|
||||
|
||||
int startPlaybackDefault(lua_State* L) {
|
||||
using interaction::KeyframeNavigator;
|
||||
ghoul::lua::checkArgumentsAndThrow(L, {1, 2}, "lua::startPlaybackDefault");
|
||||
return startPlayback(L,
|
||||
interaction::KeyframeTimeRef::Relative_recordedStart, true);
|
||||
}
|
||||
@@ -135,6 +136,7 @@ int startPlaybackApplicationTime(lua_State* L) {
|
||||
|
||||
int startPlaybackRecordedTime(lua_State* L) {
|
||||
using interaction::KeyframeNavigator;
|
||||
ghoul::lua::checkArgumentsAndThrow(L, {1, 2}, "lua::startPlaybackRecordedTime");
|
||||
return startPlayback(L,
|
||||
interaction::KeyframeTimeRef::Relative_recordedStart, false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user