Fix remote tree max selection warning not showing properly

This commit is contained in:
Michael Alexsander 2025-08-09 18:10:09 -03:00
parent a3b42d85d2
commit 87b62b9897
No known key found for this signature in database
GPG key ID: A9C91EE110F4EABA

View file

@ -95,10 +95,7 @@ void EditorDebuggerTree::_scene_tree_selection_changed(TreeItem *p_item, int p_c
if (inspected_object_ids.size() == (int)EDITOR_GET("debugger/max_node_selection")) {
selection_surpassed_limit = true;
p_item->deselect(0);
return;
}
if (!inspected_object_ids.has(id)) {
} else if (!inspected_object_ids.has(id)) {
inspected_object_ids.append(id);
}
} else if (inspected_object_ids.has(id)) {