diff --git a/include/openspace/util/constants.h b/include/openspace/util/constants.h index 7a541c89e9..ee5035cc66 100644 --- a/include/openspace/util/constants.h +++ b/include/openspace/util/constants.h @@ -59,6 +59,7 @@ namespace renderable { namespace renderableplanet { const std::string keyGeometry = "Geometry"; + const std::string keyFrame = "Frame"; } // namespace renderableplanet namespace renderablestars { diff --git a/src/rendering/planets/renderableplanet.cpp b/src/rendering/planets/renderableplanet.cpp index c8a8b7d61b..8399e0f835 100644 --- a/src/rendering/planets/renderableplanet.cpp +++ b/src/rendering/planets/renderableplanet.cpp @@ -68,7 +68,7 @@ RenderablePlanet::RenderablePlanet(const ghoul::Dictionary& dictionary) = planetgeometry::PlanetGeometry::createFromDictionary(geometryDictionary); } - dictionary.getValue("Frame", _target); + dictionary.getValue(constants::renderableplanet::keyFrame, _target); // TODO: textures need to be replaced by a good system similar to the geometry as soon // as the requirements are fixed (ab)