mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-23 12:39:24 -05:00
Merged.
This commit is contained in:
@@ -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](){
|
||||
|
||||
Reference in New Issue
Block a user