This commit is contained in:
Jonathas Costa
2018-03-16 15:17:13 -04:00
239 changed files with 2935 additions and 1734 deletions
@@ -200,19 +200,18 @@ RenderablePlanetProjection::RenderablePlanetProjection(const ghoul::Dictionary&
"RenderablePlanetProjection"
);
std::string name;
bool success = dict.getValue(SceneGraphNode::KeyName, name);
ghoul_assert(success, "");
ghoul::Dictionary geometryDictionary;
success = dict.getValue(KeyGeometry, geometryDictionary);
bool success = dict.getValue(KeyGeometry, geometryDictionary);
if (success) {
geometryDictionary.setValue(SceneGraphNode::KeyName, name);
using planetgeometry::PlanetGeometry;
_geometry = PlanetGeometry::createFromDictionary(geometryDictionary);
_geometry = planetgeometry::PlanetGeometry::createFromDictionary(
geometryDictionary
);
}
_projectionComponent.initialize(dict.value<ghoul::Dictionary>(KeyProjection));
_projectionComponent.initialize(
identifier(),
dict.value<ghoul::Dictionary>(KeyProjection)
);
_colorTexturePaths.addOption(0, NoImageText);
_colorTexturePaths.onChange([this](){