summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-05-29 17:51:12 +0200
committerGitHub <noreply@github.com>2019-05-29 17:51:12 +0200
commit21ee1d2198457b747ed2768eed5cf6c9267967ba (patch)
tree0f6751181b5501bf084bfe51a571eda8e78f4a0f /editor
parentc51d2ed55cad49e9f5928194b480e5a58bc058ce (diff)
parent72472bef05ac02de29374d4863a60305b0186101 (diff)
Merge pull request #25516 from bojidar-bg/25487-folding-remote-tree
Fix remote scene tree root folding
Diffstat (limited to 'editor')
-rw-r--r--editor/script_editor_debugger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/script_editor_debugger.cpp b/editor/script_editor_debugger.cpp
index a661c2cfc3..621ab039f4 100644
--- a/editor/script_editor_debugger.cpp
+++ b/editor/script_editor_debugger.cpp
@@ -262,7 +262,7 @@ void ScriptEditorDebugger::_scene_tree_folded(Object *obj) {
return;
ObjectID id = item->get_metadata(0);
- if (item->is_collapsed()) {
+ if (unfold_cache.has(id)) {
unfold_cache.erase(id);
} else {
unfold_cache.insert(id);