mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-08 20:50:19 -06:00
Fixed issue preventing the rendering of color properties
This commit is contained in:
@@ -217,6 +217,9 @@ void Property::setViewOption(std::string option, bool value) {
|
||||
}
|
||||
|
||||
bool Property::viewOption(const std::string& option, bool defaultValue) const {
|
||||
if (!_metaData.hasValue<ghoul::Dictionary>(_metaDataKeyViewPrefix)) {
|
||||
return defaultValue;
|
||||
}
|
||||
ghoul::Dictionary d = _metaData.value<ghoul::Dictionary>(_metaDataKeyViewPrefix);
|
||||
if (d.hasKey(option)) {
|
||||
return d.value<bool>(option);
|
||||
|
||||
Reference in New Issue
Block a user