summaryrefslogtreecommitdiff
path: root/editor/doc
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2018-06-11 13:41:16 -0300
committerJuan Linietsky <reduzio@gmail.com>2018-06-11 13:41:16 -0300
commitd5bb6faac77334154d2b16a3ff2d7ef6479b98be (patch)
treed8cd67bd46525102b4ebd4dc3591981966fcdfd4 /editor/doc
parent76875ba145c5745033d0a1c9fda2f4349e2509b3 (diff)
-Make sure that ProjectSettings are properly dumped when dumping docs.
-Documented all properties of project settings Update documentation for ProjectSettings
Diffstat (limited to 'editor/doc')
-rw-r--r--editor/doc/doc_data.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/editor/doc/doc_data.cpp b/editor/doc/doc_data.cpp
index c992ac5f16..bbd83f5099 100644
--- a/editor/doc/doc_data.cpp
+++ b/editor/doc/doc_data.cpp
@@ -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)