From ef6807b34cbe238b820912dd168a149b335fb7d7 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 (cherry picked from commit 72472bef05ac02de29374d4863a60305b0186101) --- 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 dda46d2414b..5025610b634 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);