Can now pass tokens as values in animation steps
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
#include "serializelua.hpp"
|
||||
#include <cmath>
|
||||
|
||||
LuaTokenConstant(tangible_auto, "auto", "");
|
||||
|
||||
static void tangible_getall(LuaCoreStack &LS0, LuaSlot list, const util::IdVector &idv) {
|
||||
LuaVar tangibles, tan;
|
||||
LuaExtStack LS(LS0.state(), tangibles, tan);
|
||||
@@ -73,7 +75,7 @@ LuaDefine(tangible_animfinal, "tan",
|
||||
World *w = World::fetch_global_pointer(L);
|
||||
Tangible *tan = w->tangible_get(LS, tanobj, false);
|
||||
AnimState state = tan->anim_queue_.get_final_everything();
|
||||
state.to_lua(LS, result, true);
|
||||
state.to_lua(LS, result, true, true);
|
||||
return LS.result();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user