From b9a6fbf99fede8a24f474076bc38880aa8f79483 Mon Sep 17 00:00:00 2001 From: lisyarus Date: Sat, 8 Jun 2024 17:07:41 +0300 Subject: [PATCH] Add non-const accessors to gfx::gltf_animation channels --- libs/gfx/include/psemek/gfx/gltf_animation.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/gfx/include/psemek/gfx/gltf_animation.hpp b/libs/gfx/include/psemek/gfx/gltf_animation.hpp index 711c9e93..7f061eb8 100644 --- a/libs/gfx/include/psemek/gfx/gltf_animation.hpp +++ b/libs/gfx/include/psemek/gfx/gltf_animation.hpp @@ -190,6 +190,10 @@ namespace psemek::gfx gltf_rotation_animation const & rotation() const { return rotation_; } gltf_translation_animation const & translation() const { return translation_; } + gltf_scale_animation & scale() { return scale_; } + gltf_rotation_animation & rotation() { return rotation_; } + gltf_translation_animation & translation() { return translation_; } + private: gltf_scale_animation scale_; gltf_rotation_animation rotation_;