Merge pull request #70329 from Daylily-Zeleen/daylily-zeleen/register_internal_class
Allow GDExtension to register unexposed classes.
This commit is contained in:
commit
786dab42fd
6 changed files with 35 additions and 1 deletions
|
|
@ -136,6 +136,10 @@ bool CreateDialog::_should_hide_type(const String &p_type) const {
|
|||
return true; // Wrong inheritance.
|
||||
}
|
||||
|
||||
if (!ClassDB::is_class_exposed(p_type)) {
|
||||
return true; // Unexposed types.
|
||||
}
|
||||
|
||||
for (const StringName &E : type_blacklist) {
|
||||
if (ClassDB::is_parent_class(p_type, E)) {
|
||||
return true; // Parent type is blacklisted.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue