diff options
| author | David Snopek <dsnopek@gmail.com> | 2023-08-21 09:55:22 -0500 |
|---|---|---|
| committer | David Snopek <dsnopek@gmail.com> | 2023-08-29 08:45:58 -0500 |
| commit | 39a604c9ab19a06637256322da1b0bd4ccff2ff2 (patch) | |
| tree | 8b8fc5eb35a130a76ea326d99a5cddaeeaab0b35 | |
| parent | 922689c801047c63902b190f402cd6207c83e7da (diff) | |
| download | redot-engine-39a604c9ab19a06637256322da1b0bd4ccff2ff2.tar.gz | |
Exclude unexposed classes from the extension_api.json
| -rw-r--r-- | core/extension/extension_api_dump.cpp | 3 | ||||
| -rw-r--r-- | misc/extension_api_validation/4.0-stable.expected | 25 |
2 files changed, 19 insertions, 9 deletions
diff --git a/core/extension/extension_api_dump.cpp b/core/extension/extension_api_dump.cpp index c67867f65d..97ead0b425 100644 --- a/core/extension/extension_api_dump.cpp +++ b/core/extension/extension_api_dump.cpp @@ -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"); diff --git a/misc/extension_api_validation/4.0-stable.expected b/misc/extension_api_validation/4.0-stable.expected index 89dbe8ebfa..4fbe671ebd 100644 --- a/misc/extension_api_validation/4.0-stable.expected +++ b/misc/extension_api_validation/4.0-stable.expected @@ -8,15 +8,6 @@ Add new entries at the end of the file. ======================================================================================================================== -Misc ----- -Validate extension JSON: API was removed: classes/FramebufferCacheRD -Validate extension JSON: API was removed: classes/UniformSetCacheRD - -FIXME: These aren't written when dumping the interface with a headless build -(since there's no RD backend in use). We need to fix this inconsistency somehow. - - ## Changes between 4.0-stable and 4.1-stable GH-78517 @@ -458,3 +449,19 @@ GH-80954 Validate extension JSON: Error: Field 'classes/Font/methods/find_variation/arguments': size changed value in new API, from 4 to 8. Added optional arguments. Compatibility method registered. + +GH-80852 +-------- + +Validate extension JSON: API was removed: classes/GDScriptEditorTranslationParserPlugin +Validate extension JSON: API was removed: classes/GDScriptNativeClass +Validate extension JSON: API was removed: classes/GodotPhysicsServer2D +Validate extension JSON: API was removed: classes/GodotPhysicsServer3D +Validate extension JSON: API was removed: classes/IPUnix +Validate extension JSON: API was removed: classes/MovieWriterMJPEG +Validate extension JSON: API was removed: classes/MovieWriterPNGWAV +Validate extension JSON: API was removed: classes/ResourceFormatImporterSaver +Validate extension JSON: API was removed: classes/FramebufferCacheRD +Validate extension JSON: API was removed: classes/UniformSetCacheRD + +Excluded unexposed classes from extension_api.json. |
