Minor bugfix to tangible.animate
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user