diff options
Diffstat (limited to 'editor/create_dialog.cpp')
-rw-r--r-- | editor/create_dialog.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/create_dialog.cpp b/editor/create_dialog.cpp index a8a2ac0c20..ba189da779 100644 --- a/editor/create_dialog.cpp +++ b/editor/create_dialog.cpp @@ -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. |