mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-27 14:29:37 -05:00
Introduction of new Dictionary class (#1446)
* Adapting to introduction of new Dictionary class in Ghoul * Mainly replacing usage of float instead of doubles as expected * Adjust to the lack of the hasKeyAndValue function
This commit is contained in:
@@ -125,7 +125,9 @@ void renderOptionProperty(Property* prop, const std::string& ownerName,
|
||||
const std::string& name = p->guiName();
|
||||
ImGui::PushID((ownerName + "." + name).c_str());
|
||||
bool isReadOnly = false;
|
||||
p->metaData().getValue("isReadOnly", isReadOnly);
|
||||
if (p->metaData().hasValue<bool>("isReadOnly")) {
|
||||
isReadOnly = p->metaData().value<bool>("isReadOnly");
|
||||
}
|
||||
|
||||
int value = *p;
|
||||
const std::vector<OptionProperty::Option>& options = p->options();
|
||||
|
||||
Reference in New Issue
Block a user