-
-
Save appgurueu/85f819729e1fbc34a86a960746ec58cc to your computer and use it in GitHub Desktop.
Trivial naming fix (docs document interpolation, which is the better name)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| commit 323ad74d1403ae798d248b88b23a40e524aac2dc | |
| Author: Lars Müller <appgurulars@gmx.de> | |
| Date: Sat May 4 01:58:37 2024 +0200 | |
| Fix wrong name for bone override interpolation field | |
| diff --git a/src/script/lua_api/l_object.cpp b/src/script/lua_api/l_object.cpp | |
| index c78a87317..e21d37176 100644 | |
| --- a/src/script/lua_api/l_object.cpp | |
| +++ b/src/script/lua_api/l_object.cpp | |
| @@ -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); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment