mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 17:41:19 +00:00
Allow GDExtension to register unexposed class.
This commit is contained in:
parent
fa3428ff25
commit
41ffe5461f
6 changed files with 35 additions and 1 deletions
|
|
@ -135,6 +135,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