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);
|
int64_t id = w->id_global_pool_.alloc_id_for_thread(L);
|
||||||
AnimStep step;
|
AnimStep step;
|
||||||
step.from_lua(L, config.index());
|
step.from_lua(L, config.index());
|
||||||
|
if (step.action() == "") {
|
||||||
|
luaL_error(L, "animation action must be specified");
|
||||||
|
}
|
||||||
tan->anim_queue_.add(id, step);
|
tan->anim_queue_.add(id, step);
|
||||||
tan->update_plane_item();
|
tan->update_plane_item();
|
||||||
return LS.result();
|
return LS.result();
|
||||||
|
|||||||
Reference in New Issue
Block a user