You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Fixes add group in Group Editor dialog
Before this fix, new group can't be created if any existing group starts
with the new name.
(cherry picked from commit 421ea09195)
This commit is contained in:
committed by
Rémi Verschelde
parent
a7ff22ea6d
commit
0a3bf2b627
@@ -197,7 +197,7 @@ void GroupDialog::_add_group(String p_name) {
|
||||
}
|
||||
|
||||
String name = p_name.strip_edges();
|
||||
if (name == "" || groups->search_item_text(name)) {
|
||||
if (name.empty() || groups->get_item_with_text(name)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user