Minor bugfix to tangible.animate

This commit is contained in:
2021-03-28 15:22:45 -04:00
parent 98d261ce37
commit 795a45c950

View File

@@ -471,6 +471,9 @@ LuaDefine(tangible_animate, "c") {
int64_t id = w->id_global_pool_.alloc_id_for_thread(L);
AnimStep step;
step.from_lua(L, config.index());
if (step.action() == "") {
luaL_error(L, "animation action must be specified");
}
tan->anim_queue_.add(id, step);
tan->update_plane_item();
return LS.result();