1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +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

@ -36,7 +36,8 @@ enum GenericCMD {
GENERIC_CMD_ATTACH_TO,
GENERIC_CMD_SET_PHYSICS_OVERRIDE,
GENERIC_CMD_UPDATE_NAMETAG_ATTRIBUTES,
GENERIC_CMD_SPAWN_INFANT
GENERIC_CMD_SPAWN_INFANT,
GENERIC_CMD_SET_ANIMATION_SPEED
};
#include "object_properties.h"
@ -72,6 +73,8 @@ std::string gob_cmd_update_physics_override(float physics_override_speed,
std::string gob_cmd_update_animation(v2f frames, float frame_speed, float frame_blend, bool frame_loop);
std::string gob_cmd_update_animation_speed(float frame_speed);
std::string gob_cmd_update_bone_position(const std::string &bone, v3f position,
v3f rotation);