Merge pull request #20253 from neikeq/nobranchnameideasfeelsbadman

Make C# bindings generator ignore disabled classes
This commit is contained in:
Ignacio Etcheverry 2018-07-18 21:20:34 +02:00 committed by GitHub
commit a731bd5864
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -1768,6 +1768,13 @@ void BindingsGenerator::_populate_object_type_interfaces() {
continue; 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); ClassDB::ClassInfo *class_info = ClassDB::classes.getptr(type_cname);
TypeInterface itype = TypeInterface::create_object_type(type_cname, api_type); TypeInterface itype = TypeInterface::create_object_type(type_cname, api_type);