From 243f6d3ada5a773a336762909f95df5d424f4daf Mon Sep 17 00:00:00 2001 From: GPayne Date: Fri, 13 May 2022 11:30:40 -0600 Subject: [PATCH] Fixes gcc error with missing 'template <>' headers on specializations --- modules/skybrowser/src/utility.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/skybrowser/src/utility.cpp b/modules/skybrowser/src/utility.cpp index ea14b1d506..40549d58e8 100644 --- a/modules/skybrowser/src/utility.cpp +++ b/modules/skybrowser/src/utility.cpp @@ -211,6 +211,7 @@ double sizeFromFov(double fov, glm::dvec3 worldPosition) { return opposite; } +template <> float Animation::getNewValue() { if (!isAnimating()) { return _goal; @@ -222,6 +223,7 @@ float Animation::getNewValue() { } } +template <> double Animation::getNewValue() { if (!isAnimating()) { return _goal; @@ -233,6 +235,7 @@ double Animation::getNewValue() { } } +template <> glm::dmat4 Animation::getRotationMatrix() { if (!isAnimating()) { return glm::dmat4(1.0); @@ -250,6 +253,7 @@ glm::dmat4 Animation::getRotationMatrix() { return rotMat; } +template <> glm::dvec3 Animation::getNewValue() { if (!isAnimating()) { return _goal;