Fix tangible.build
This commit is contained in:
@@ -167,7 +167,7 @@ void AnimStep::from_lua_store_number(lua_State *L, int idx, float *target, float
|
||||
bits_ |= bits;
|
||||
}
|
||||
|
||||
void AnimStep::from_lua(lua_State *L, int idx, const AnimStep &qback) {
|
||||
void AnimStep::from_lua(lua_State *L, int idx, bool ignex, const AnimStep &qback) {
|
||||
LuaSpecial tab(idx);
|
||||
LuaVar key, value;
|
||||
LuaStack LS(L, key, value);
|
||||
@@ -201,7 +201,9 @@ void AnimStep::from_lua(lua_State *L, int idx, const AnimStep &qback) {
|
||||
} else if (skey == "facing") {
|
||||
from_lua_store_number(L, value.index(), &facing_, 0.0, HAS_FACING, "facing");
|
||||
} else {
|
||||
luaL_error(L, "Unrecognized animation spec: %s", skey.c_str());
|
||||
if (!ignex) {
|
||||
luaL_error(L, "Unrecognized animation spec: %s", skey.c_str());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user