diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-07-30 15:36:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-30 15:36:07 +0200 |
commit | dfa324eb8ea4a1f9a53dd6e29e9016b7f5dcd232 (patch) | |
tree | edcd35220b5a3571324794a0b5269c0af2d683be /editor | |
parent | 7d76f3b3939e783a7e635879096737d392daf343 (diff) | |
parent | d8dae84c9a4c60d63f6be02a8edc90839ece488b (diff) |
Merge pull request #30962 from silvanocerza/remote-tree-collapse-fix
Fixed remote scene tree not collapsing
Diffstat (limited to 'editor')
-rw-r--r-- | editor/script_editor_debugger.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/editor/script_editor_debugger.cpp b/editor/script_editor_debugger.cpp index a749509ce4..f7ff754a0b 100644 --- a/editor/script_editor_debugger.cpp +++ b/editor/script_editor_debugger.cpp @@ -418,6 +418,13 @@ int ScriptEditorDebugger::_update_scene_tree(TreeItem *parent, const Array &node } item->set_metadata(0, id); + // Set current item as collapsed if necessary + if (parent) { + if (!unfold_cache.has(id)) { + item->set_collapsed(true); + } + } + int children_count = nodes[current_index]; // Tracks the total number of items parsed in nodes, this is used to skips nodes that // are not direct children of the current node since we can't know in advance the total |