From c655fc7cd89d17eb858b3c99e82402de61571bb0 Mon Sep 17 00:00:00 2001 From: geequlim Date: Tue, 17 Oct 2017 22:39:31 +0800 Subject: Better supported for remote object editing with the inspector with a simple dictionary editor implement --- editor/editor_path.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'editor/editor_path.cpp') diff --git a/editor/editor_path.cpp b/editor/editor_path.cpp index 0587939a1..f0d3c29c1 100644 --- a/editor/editor_path.cpp +++ b/editor/editor_path.cpp @@ -149,14 +149,14 @@ void EditorPath::_notification(int p_what) { if (name == "") name = r->get_class(); - } else if (Object::cast_to(obj)) { - + } else if (obj->is_class("ScriptEditorDebuggerInspectedObject")) + name = obj->call("get_title"); + else if (Object::cast_to(obj)) name = Object::cast_to(obj)->get_name(); - } else if (Object::cast_to(obj) && Object::cast_to(obj)->get_name() != "") { + else if (Object::cast_to(obj) && Object::cast_to(obj)->get_name() != "") name = Object::cast_to(obj)->get_name(); - } else { + else name = obj->get_class(); - } set_tooltip(obj->get_class()); -- cgit v1.2.3-70-g09d2