Fix height mapping bugs in renderable planet

This commit is contained in:
Emil Axelsson
2018-01-16 17:05:46 +01:00
parent f9d4290af1
commit d569b8235e
2 changed files with 11 additions and 5 deletions
+1 -5
View File
@@ -236,6 +236,7 @@ RenderablePlanet::RenderablePlanet(const ghoul::Dictionary& dictionary)
if (dictionary.hasKey(PerformShadingInfo.identifier)) {
_performShading = dictionary.value<bool>(PerformShadingInfo.identifier);
}
addProperty(_performShading);
addPropertySubOwner(_geometry.get());
@@ -256,11 +257,6 @@ RenderablePlanet::RenderablePlanet(const ghoul::Dictionary& dictionary)
}
addProperty(_heightExaggeration);
if (dictionary.hasKey(HeightExaggerationInfo.identifier)) {
_performShading = dictionary.value<bool>(HeightExaggerationInfo.identifier);
}
addProperty(_performShading);
//================================================================
//======== Reads Shadow (Eclipses) Entries in mod file ===========
//================================================================