mirror of
https://github.com/godotengine/godot.git
synced 2024-11-10 14:12:51 +00:00
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:
commit
2f47a0747c
@ -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.
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user