From d5bb6faac77334154d2b16a3ff2d7ef6479b98be Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Mon, 11 Jun 2018 13:41:16 -0300 Subject: -Make sure that ProjectSettings are properly dumped when dumping docs. -Documented all properties of project settings Update documentation for ProjectSettings --- editor/doc/doc_data.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'editor/doc/doc_data.cpp') diff --git a/editor/doc/doc_data.cpp b/editor/doc/doc_data.cpp index c992ac5f1..bbd83f509 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 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::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) -- cgit v1.2.3-70-g09d2