-Make sure that ProjectSettings are properly dumped when dumping docs.
-Documented all properties of project settings Update documentation for ProjectSettings
This commit is contained in:
@ -233,7 +233,14 @@ void DocData::generate(bool p_basic_types) {
|
||||
c.category = ClassDB::get_category(name);
|
||||
|
||||
List<PropertyInfo> properties;
|
||||
ClassDB::get_property_list(name, &properties, true);
|
||||
if (name=="ProjectSettings") {
|
||||
//special case for project settings, so settings can be documented
|
||||
ProjectSettings::get_singleton()->get_property_list(&properties);
|
||||
} else {
|
||||
ClassDB::get_property_list(name, &properties, true);
|
||||
}
|
||||
|
||||
|
||||
|
||||
for (List<PropertyInfo>::Element *E = properties.front(); E; E = E->next()) {
|
||||
if (E->get().usage & PROPERTY_USAGE_GROUP || E->get().usage & PROPERTY_USAGE_CATEGORY || E->get().usage & PROPERTY_USAGE_INTERNAL)
|
||||
|
||||
Reference in New Issue
Block a user