From 8cbb77df13c4a0e6d6ae0f8b32913cf7e5b2f59c Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 12 Aug 2012 12:13:17 +0300 Subject: [PATCH] Allow setting keyframe matrix from the outside --- source/keyframe.cpp | 5 +++++ source/keyframe.h | 1 + 2 files changed, 6 insertions(+) diff --git a/source/keyframe.cpp b/source/keyframe.cpp index 7310c239..429d893c 100644 --- a/source/keyframe.cpp +++ b/source/keyframe.cpp @@ -3,6 +3,11 @@ namespace Msp { namespace GL { +void KeyFrame::set_matrix(const Matrix &m) +{ + matrix = m; +} + KeyFrame::Loader::Loader(KeyFrame &k): DataFile::ObjectLoader(k) { diff --git a/source/keyframe.h b/source/keyframe.h index 4b0fa5bd..bc3d65ec 100644 --- a/source/keyframe.h +++ b/source/keyframe.h @@ -28,6 +28,7 @@ private: Matrix matrix; public: + void set_matrix(const Matrix &); const Matrix &get_matrix() const { return matrix; } }; -- 2.45.2