mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Merge pull request #32049 from codecustard/fix_remoteview_navto_inspected
Fix Remote Tree Navigate to Inspected
This commit is contained in:
commit
a089057596
1 changed files with 9 additions and 0 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue