diff options
author | Ignacio Etcheverry <neikeq@users.noreply.github.com> | 2018-07-18 21:20:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-18 21:20:34 +0200 |
commit | a731bd58643da57f3c3846102c9173651ef7478b (patch) | |
tree | 191f26de7c27c19228fdcf1539c8b74cb56c04dc | |
parent | 82b550c6b34b7a836a3bb9da4d31c9e6264c5252 (diff) | |
parent | 92c7fe422be7401e3234988a8369d2d3281f5c03 (diff) |
Merge pull request #20253 from neikeq/nobranchnameideasfeelsbadman
Make C# bindings generator ignore disabled classes
-rw-r--r-- | modules/mono/editor/bindings_generator.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/mono/editor/bindings_generator.cpp b/modules/mono/editor/bindings_generator.cpp index 4c598d4f37..6fa317ee70 100644 --- a/modules/mono/editor/bindings_generator.cpp +++ b/modules/mono/editor/bindings_generator.cpp @@ -1768,6 +1768,13 @@ void BindingsGenerator::_populate_object_type_interfaces() { continue; } + if (!ClassDB::is_class_enabled(type_cname)) { + if (verbose_output) + WARN_PRINTS("Ignoring type " + type_cname.operator String() + " because it's not enabled"); + class_list.pop_front(); + continue; + } + ClassDB::ClassInfo *class_info = ClassDB::classes.getptr(type_cname); TypeInterface itype = TypeInterface::create_object_type(type_cname, api_type); |