Merge pull request #2112 from OpenSpace/issue/2111

Fixes gcc error with missing 'template <>' headers on specializations
This commit is contained in:
Gene Payne
2022-05-16 11:28:56 -06:00
committed by GitHub

View File

@@ -211,6 +211,7 @@ double sizeFromFov(double fov, glm::dvec3 worldPosition) {
return opposite;
}
template <>
float Animation<float>::getNewValue() {
if (!isAnimating()) {
return _goal;
@@ -222,6 +223,7 @@ float Animation<float>::getNewValue() {
}
}
template <>
double Animation<double>::getNewValue() {
if (!isAnimating()) {
return _goal;
@@ -233,6 +235,7 @@ double Animation<double>::getNewValue() {
}
}
template <>
glm::dmat4 Animation<glm::dvec3>::getRotationMatrix() {
if (!isAnimating()) {
return glm::dmat4(1.0);
@@ -250,6 +253,7 @@ glm::dmat4 Animation<glm::dvec3>::getRotationMatrix() {
return rotMat;
}
template <>
glm::dvec3 Animation<glm::dvec3>::getNewValue() {
if (!isAnimating()) {
return _goal;