diff options
author | sapier <sapier@users.noreply.github.com> | 2017-09-01 11:15:12 +0200 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-09-01 11:15:12 +0200 |
commit | bf403b923ab4a1e11447b3f81d54d5d0c1124f65 (patch) | |
tree | 8c8f73e07051d8de8d5eb5c488bfdbc4377de3b3 /src/script/lua_api/l_object.h | |
parent | b8f06ad37e142004335e8c2ffaec5fe73b620196 (diff) | |
download | hax-minetest-server-bf403b923ab4a1e11447b3f81d54d5d0c1124f65.tar.gz hax-minetest-server-bf403b923ab4a1e11447b3f81d54d5d0c1124f65.zip |
Fix animation frame_speed and blend loosing precision due to incorrec… (#6357)
* Fix animation frame_speed and blend loosing precision due to incorrect data type
Add lua function set_animation_frame_speed to update the frame speed without resetting the animation to start
Diffstat (limited to 'src/script/lua_api/l_object.h')
-rw-r--r-- | src/script/lua_api/l_object.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/script/lua_api/l_object.h b/src/script/lua_api/l_object.h index 19cc890c7..2a76d8a70 100644 --- a/src/script/lua_api/l_object.h +++ b/src/script/lua_api/l_object.h @@ -126,6 +126,9 @@ private: // set_animation(self, frame_range, frame_speed, frame_blend, frame_loop) static int l_set_animation(lua_State *L); + // set_animation_frame_speed(self, frame_speed) + static int l_set_animation_frame_speed(lua_State *L); + // get_animation(self) static int l_get_animation(lua_State *L); |