diff --git a/include/openspace/properties/property.h b/include/openspace/properties/property.h index e4b892dc66..0c6e15aace 100644 --- a/include/openspace/properties/property.h +++ b/include/openspace/properties/property.h @@ -84,13 +84,21 @@ public: , description(desc) {} + constexpr PropertyInfo(const char* ident, const char* gui, const char* desc, + Visibility vis) + : identifier(ident) + , guiName(gui) + , description(desc) + , visibility(vis) + {} + /// The unique identifier that is part of the fully qualified URI of this Property const char* identifier; /// The name that is displayed in the user interface const char* guiName; /// The user facing description of this Property const char* description; - /// Determins the visibility of this Property in the user interface + /// Determines the visibility of this Property in the user interface Visibility visibility = Visibility::All; };