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

Fix Remote Tree Navigate to Inspected

Fixes the regression of remote-tree not navigating to what is being inspected in the inspector.
This commit is contained in:
Emmanuel Barroga
2019-09-08 19:52:37 -07:00
parent 24e1039eb6
commit 6efbabeb9e

View File

@@ -434,6 +434,15 @@ int ScriptEditorDebugger::_update_scene_tree(TreeItem *parent, const Array &node
}
item->set_metadata(0, id);
if (id == inspected_object_id) {
TreeItem *cti = item->get_parent();
while (cti) {
cti->set_collapsed(false);
cti = cti->get_parent();
}
item->select(0);
}
// Set current item as collapsed if necessary
if (parent) {
if (!unfold_cache.has(id)) {