Browse Source

Inspector: select self object after selecting a stack frame

lupoDharkael 5 years ago
parent
commit
cc85be3aae
1 changed files with 4 additions and 0 deletions
  1. 4 0
      editor/script_editor_debugger.cpp

+ 4 - 0
editor/script_editor_debugger.cpp

@@ -728,6 +728,10 @@ void ScriptEditorDebugger::_parse_message(const String &p_msg, const Array &p_da
 			}
 			}
 
 
 			variables->add_property("Members/" + n, v, h, hs);
 			variables->add_property("Members/" + n, v, h, hs);
+
+			if (n == "self") {
+				_scene_tree_property_select_object(v);
+			}
 		}
 		}
 
 
 		ofs += mcount * 2;
 		ofs += mcount * 2;