mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-16 17:29:20 -06:00
Changes to fix Dawn scene.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user