Replace hard-coded constant with constant definition

This commit is contained in:
Alexander Bock
2014-09-26 01:00:15 +02:00
parent edd52e60b7
commit dbd13b3310
2 changed files with 2 additions and 1 deletions

View File

@@ -59,6 +59,7 @@ namespace renderable {
namespace renderableplanet {
const std::string keyGeometry = "Geometry";
const std::string keyFrame = "Frame";
} // namespace renderableplanet
namespace renderablestars {

View File

@@ -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)