Changes to fix Dawn scene.

This commit is contained in:
Jonathas Costa
2020-01-27 17:23:05 -05:00
parent bf9df85327
commit 607451e04b
5 changed files with 36 additions and 13 deletions

View File

@@ -141,15 +141,26 @@ Renderable::Renderable(const ghoul::Dictionary& dictionary)
}
if (dictionary.hasKey(OpacityInfo.identifier)) {
_opacity = static_cast<float>(dictionary.value<double>(OpacityInfo.identifier));
_opacity = static_cast<float>(dictionary.value<double>(
OpacityInfo.identifier)
);
}
addProperty(_enabled);
//set type for UI
if (dictionary.hasKey(RenderableTypeInfo.identifier)) {
_renderableType = dictionary.value<std::string>(RenderableTypeInfo.identifier);
_renderableType = dictionary.value<std::string>(
RenderableTypeInfo.identifier
);
}
if (dictionary.hasKey(BoundingSphereInfo.identifier)) {
_boundingSphere = static_cast<float>(
dictionary.value<double>(BoundingSphereInfo.identifier)
);
}
addProperty(_renderableType);
addProperty(_boundingSphere);
}