1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-11 17:51:04 +00:00

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
This commit is contained in:
sapier 2017-09-01 11:15:12 +02:00 committed by Loïc Blot
parent b8f06ad37e
commit bf403b923a
10 changed files with 74 additions and 5 deletions

View file

@ -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);