diff options
Diffstat (limited to 'src/content_cao.h')
-rw-r--r-- | src/content_cao.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/content_cao.h b/src/content_cao.h index 0b0e907c5..93b532aad 100644 --- a/src/content_cao.h +++ b/src/content_cao.h @@ -83,8 +83,8 @@ private: bool m_initial_tx_basepos_set = false; bool m_tx_select_horiz_by_yawpitch = false; v2s32 m_animation_range; - int m_animation_speed = 15; - int m_animation_blend = 0; + float m_animation_speed = 15.0f; + float m_animation_blend = 0.0f; bool m_animation_loop = true; // stores position and rotation for each bone name std::unordered_map<std::string, core::vector2d<v3f>> m_bone_position; @@ -197,6 +197,8 @@ public: void updateAnimation(); + void updateAnimationSpeed(); + void updateBonePosition(); void updateAttachments(); |