diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-04-20 15:21:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-20 15:21:49 +0200 |
commit | 9cf48b3e995b40bba174f062d0d3f4249e8cdbf0 (patch) | |
tree | cf7c8060bd2f52615d2b449f150ee4c2dc76c53c /editor | |
parent | f8218c76ef79b5028df3f4a4324f1e3174146398 (diff) | |
parent | 0ef8bcac4d05a998e94d1a8b3db4f47401e5d730 (diff) |
Merge pull request #38039 from akien-mga/docdata-skip-unexposed
DocData: Skip unexposed classes
Diffstat (limited to 'editor')
-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()); |