From bf403b923ab4a1e11447b3f81d54d5d0c1124f65 Mon Sep 17 00:00:00 2001 From: sapier Date: Fri, 1 Sep 2017 11:15:12 +0200 Subject: =?UTF-8?q?Fix=20animation=20frame=5Fspeed=20and=20blend=20loosing?= =?UTF-8?q?=20precision=20due=20to=20incorrec=E2=80=A6=20(#6357)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --- src/genericobject.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/genericobject.h') diff --git a/src/genericobject.h b/src/genericobject.h index 3ebc85fa3..878300fbf 100644 --- a/src/genericobject.h +++ b/src/genericobject.h @@ -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); -- cgit v1.2.3