diff options
Diffstat (limited to 'editor/groups_editor.cpp')
-rw-r--r-- | editor/groups_editor.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/editor/groups_editor.cpp b/editor/groups_editor.cpp index 902e166fd9..c4e38b327a 100644 --- a/editor/groups_editor.cpp +++ b/editor/groups_editor.cpp @@ -157,10 +157,14 @@ void GroupsEditor::_update_groups() { _load_scene_groups(scene_root_node); - for (const KeyValue<StringName, bool> &E : scene_groups) { - if (global_groups.has(E.key)) { - scene_groups.erase(E.key); + for (HashMap<StringName, bool>::Iterator E = scene_groups.begin(); E;) { + HashMap<StringName, bool>::Iterator next = E; + ++next; + + if (global_groups.has(E->key)) { + scene_groups.erase(E->key); } + E = next; } updating_groups = false; @@ -196,7 +200,7 @@ void GroupsEditor::_update_tree() { TreeItem *root = tree->create_item(); TreeItem *local_root = tree->create_item(root); - local_root->set_text(0, "Scene Groups"); + local_root->set_text(0, TTR("Scene Groups")); local_root->set_icon(0, get_editor_theme_icon(SNAME("PackedScene"))); local_root->set_custom_bg_color(0, get_theme_color(SNAME("prop_subsection"), SNAME("Editor"))); local_root->set_selectable(0, false); @@ -233,7 +237,7 @@ void GroupsEditor::_update_tree() { keys.sort_custom<NoCaseComparator>(); TreeItem *global_root = tree->create_item(root); - global_root->set_text(0, "Global Groups"); + global_root->set_text(0, TTR("Global Groups")); global_root->set_icon(0, get_editor_theme_icon(SNAME("Environment"))); global_root->set_custom_bg_color(0, get_theme_color(SNAME("prop_subsection"), SNAME("Editor"))); global_root->set_selectable(0, false); |