mirror of
https://github.com/minetest/minetest.git
synced 2025-03-06 20:48:40 +01:00
Fix wrong name for bone override interpolation field
This commit is contained in:
parent
f0bb5313d3
commit
70bddcf318
1 changed files with 2 additions and 2 deletions
|
@ -604,7 +604,7 @@ int ObjectRef::l_set_bone_override(lua_State *L)
|
|||
prop.absolute = lua_toboolean(L, -1);
|
||||
lua_pop(L, 1);
|
||||
|
||||
lua_getfield(L, -1, "interpolate");
|
||||
lua_getfield(L, -1, "interpolation");
|
||||
if (lua_isnumber(L, -1))
|
||||
prop.interp_timer = lua_tonumber(L, -1);
|
||||
lua_pop(L, 1);
|
||||
|
@ -655,7 +655,7 @@ static void push_bone_override(lua_State *L, const BoneOverride &props)
|
|||
push_v3f(L, vec);
|
||||
lua_setfield(L, -2, "vec");
|
||||
lua_pushnumber(L, prop.interp_timer);
|
||||
lua_setfield(L, -2, "interpolate");
|
||||
lua_setfield(L, -2, "interpolation");
|
||||
lua_pushboolean(L, prop.absolute);
|
||||
lua_setfield(L, -2, "absolute");
|
||||
lua_setfield(L, -2, name);
|
||||
|
|
Loading…
Add table
Reference in a new issue