You've already forked godot
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user