summaryrefslogtreecommitdiffstats
path: root/editor/doc_tools.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/doc_tools.cpp')
-rw-r--r--editor/doc_tools.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/editor/doc_tools.cpp b/editor/doc_tools.cpp
index 110fa941af..7c9736413d 100644
--- a/editor/doc_tools.cpp
+++ b/editor/doc_tools.cpp
@@ -374,6 +374,11 @@ void DocTools::generate(bool p_basic_types) {
classes.pop_front();
continue;
}
+ if (ClassDB::get_api_type(name) != ClassDB::API_CORE && ClassDB::get_api_type(name) != ClassDB::API_EDITOR) {
+ print_verbose(vformat("Class '%s' belongs neither to core nor editor, skipping.", name));
+ classes.pop_front();
+ continue;
+ }
String cname = name;
// Property setters and getters do not get exposed as individual methods.
@@ -1367,10 +1372,7 @@ static void _write_string(Ref<FileAccess> f, int p_tablevel, const String &p_str
if (p_string.is_empty()) {
return;
}
- String tab;
- for (int i = 0; i < p_tablevel; i++) {
- tab += "\t";
- }
+ String tab = String("\t").repeat(p_tablevel);
f->store_string(tab + p_string + "\n");
}