diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2020-04-20 12:29:34 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2020-04-20 12:51:10 +0200 |
commit | 0ef8bcac4d05a998e94d1a8b3db4f47401e5d730 (patch) | |
tree | 649b15ae7656929944a3b8accbe7ce4cf678ae58 /editor/doc_data.cpp | |
parent | 088c2a087029901e5657089a6f2531ce6c015fe5 (diff) |
DocData: Skip unexposed classes
Properly expose classes that we actually want accessible.
Diffstat (limited to 'editor/doc_data.cpp')
-rw-r--r-- | editor/doc_data.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/editor/doc_data.cpp b/editor/doc_data.cpp index 096be1fe4b..55abc4ff2e 100644 --- a/editor/doc_data.cpp +++ b/editor/doc_data.cpp @@ -243,6 +243,12 @@ void DocData::generate(bool p_basic_types) { Set<StringName> setters_getters; String name = classes.front()->get(); + if (!ClassDB::is_class_exposed(name)) { + print_verbose(vformat("Class '%s' is not exposed, skipping.", name)); + classes.pop_front(); + continue; + } + String cname = name; if (cname.begins_with("_")) //proxy class cname = cname.substr(1, name.length()); |