From 95e99e41047fff3bcd69c88d9249cdc787918eed Mon Sep 17 00:00:00 2001 From: lisyarus Date: Wed, 2 Aug 2023 19:18:35 +0300 Subject: [PATCH] Support retrieving specific channels from gltf_animation --- 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 30d5fa22..858f21ee 100644 --- a/libs/gfx/include/psemek/gfx/gltf_animation.hpp +++ b/libs/gfx/include/psemek/gfx/gltf_animation.hpp @@ -185,6 +185,10 @@ namespace psemek::gfx * geom::scale(scale_(time)).transform(); } + gltf_scale_animation const & scale() const { return scale_; } + gltf_rotation_animation const & rotation() const { return rotation_; } + gltf_translation_animation const & translation() const { return translation_; } + private: gltf_scale_animation scale_; gltf_rotation_animation rotation_;