Explorar o código

Fix remote scene tree root folding

Fixes #25487
Bojidar Marinov %!s(int64=6) %!d(string=hai) anos
pai
achega
72472bef05
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      editor/script_editor_debugger.cpp

+ 1 - 1
editor/script_editor_debugger.cpp

@@ -261,7 +261,7 @@ void ScriptEditorDebugger::_scene_tree_folded(Object *obj) {
 		return;
 		return;
 
 
 	ObjectID id = item->get_metadata(0);
 	ObjectID id = item->get_metadata(0);
-	if (item->is_collapsed()) {
+	if (unfold_cache.has(id)) {
 		unfold_cache.erase(id);
 		unfold_cache.erase(id);
 	} else {
 	} else {
 		unfold_cache.insert(id);
 		unfold_cache.insert(id);