1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Properly inspect old remote selection

This commit is contained in:
kobewi
2025-09-04 15:41:11 +02:00
parent 9edc290328
commit 139c406558
3 changed files with 14 additions and 1 deletions

View File

@@ -374,6 +374,16 @@ void EditorDebuggerTree::update_scene_tree(const SceneDebuggerTree *p_tree, int
scroll_to_item(scroll_item, false);
}
if (new_session) {
// Some nodes may stay selected between sessions.
// Make sure the inspector shows them properly.
if (!notify_selection_queued) {
callable_mp(this, &EditorDebuggerTree::_notify_selection_changed).call_deferred();
notify_selection_queued = true;
}
new_session = false;
}
last_filter = filter;
updating_scene_tree = false;
}