mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-19 11:29:08 -06:00
Fixes gcc error with missing 'template <>' headers on specializations
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user