Merge pull request #59498 from adamscott/add-custom-type-check-before-hiding-type

[Fix #58248] Add custom type check before hiding type
This commit is contained in:
Rémi Verschelde 2022-05-12 23:58:52 +02:00 committed by GitHub
commit 2f47a0747c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ bool CreateDialog::_should_hide_type(const String &p_type) const {
return true; // Do not show editor nodes.
}
if (p_type == base_type) {
if (p_type == base_type && !EditorNode::get_editor_data().get_custom_types().has(p_type)) {
return true; // Root is already added.
}