Loading anim/include/anim/animation_track.hpp +1 −1 Original line number Diff line number Diff line Loading @@ -62,7 +62,7 @@ struct AnimationTrack : public IAnimationTrack { } // Update a keyframe at a specific index void update_keyframe(size_t index, Keyframe<T> newKeyframe) { void update_keyframe(size_t index, Keyframe<T>&& newKeyframe) { if (index < m_keyframes.size()) { std::swap(m_keyframes[index], newKeyframe); sort_keyframes(); Loading anim/include/anim/interpolator.hpp +1 −1 Original line number Diff line number Diff line Loading @@ -178,7 +178,7 @@ struct BezierInterpolator : public Interpolator<T> { std::unique_ptr<Interpolator<T>> clone() const override { return std::make_unique<BezierInterpolator<T>>(*this); return std::make_unique<BezierInterpolator<T, Method>>(*this); } private: Loading anim/include/anim/keyframe.hpp +2 −2 Original line number Diff line number Diff line Loading @@ -33,13 +33,13 @@ public: Keyframe(const Keyframe& other) : m_time(other.m_time) , m_value(other.m_value) , m_interpolator(other.m_interpolator->clone()) {} , m_interpolator(other.m_interpolator ? other.m_interpolator->clone() : nullptr) {} Keyframe& operator=(const Keyframe& other) { if (this != &other) { m_time = other.m_time; m_value = other.m_value; m_interpolator = other.m_interpolator->clone(); m_interpolator = other.m_interpolator ? other.m_interpolator->clone() : nullptr; } return *this; } Loading Loading
anim/include/anim/animation_track.hpp +1 −1 Original line number Diff line number Diff line Loading @@ -62,7 +62,7 @@ struct AnimationTrack : public IAnimationTrack { } // Update a keyframe at a specific index void update_keyframe(size_t index, Keyframe<T> newKeyframe) { void update_keyframe(size_t index, Keyframe<T>&& newKeyframe) { if (index < m_keyframes.size()) { std::swap(m_keyframes[index], newKeyframe); sort_keyframes(); Loading
anim/include/anim/interpolator.hpp +1 −1 Original line number Diff line number Diff line Loading @@ -178,7 +178,7 @@ struct BezierInterpolator : public Interpolator<T> { std::unique_ptr<Interpolator<T>> clone() const override { return std::make_unique<BezierInterpolator<T>>(*this); return std::make_unique<BezierInterpolator<T, Method>>(*this); } private: Loading
anim/include/anim/keyframe.hpp +2 −2 Original line number Diff line number Diff line Loading @@ -33,13 +33,13 @@ public: Keyframe(const Keyframe& other) : m_time(other.m_time) , m_value(other.m_value) , m_interpolator(other.m_interpolator->clone()) {} , m_interpolator(other.m_interpolator ? other.m_interpolator->clone() : nullptr) {} Keyframe& operator=(const Keyframe& other) { if (this != &other) { m_time = other.m_time; m_value = other.m_value; m_interpolator = other.m_interpolator->clone(); m_interpolator = other.m_interpolator ? other.m_interpolator->clone() : nullptr; } return *this; } Loading