From 72472bef05ac02de29374d4863a60305b0186101 Mon Sep 17 00:00:00 2001 From: Bojidar Marinov Date: Thu, 31 Jan 2019 16:40:27 +0200 Subject: [PATCH] Fix remote scene tree root folding Fixes #25487 --- editor/script_editor_debugger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/script_editor_debugger.cpp b/editor/script_editor_debugger.cpp index 5f6459045a6..964936a14d3 100644 --- a/editor/script_editor_debugger.cpp +++ b/editor/script_editor_debugger.cpp @@ -261,7 +261,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);