mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Exclude unexposed classes from the extension_api.json
This commit is contained in:
@@ -750,6 +750,9 @@ Dictionary GDExtensionAPIDump::generate_extension_api() {
|
||||
class_list.sort_custom<StringName::AlphCompare>();
|
||||
|
||||
for (const StringName &class_name : class_list) {
|
||||
if (!ClassDB::is_class_exposed(class_name)) {
|
||||
continue;
|
||||
}
|
||||
Dictionary d;
|
||||
d["name"] = String(class_name);
|
||||
d["is_refcounted"] = ClassDB::is_parent_class(class_name, "RefCounted");
|
||||
|
||||
Reference in New Issue
Block a user