Better supported for remote object editing with the inspector with a simple dictionary editor implement

This commit is contained in:
geequlim 2017-10-17 22:39:31 +08:00 committed by Geequlim
parent ccf76798d5
commit c655fc7cd8
5 changed files with 298 additions and 14 deletions

View file

@ -149,14 +149,14 @@ void EditorPath::_notification(int p_what) {
if (name == "")
name = r->get_class();
} else if (Object::cast_to<Node>(obj)) {
} else if (obj->is_class("ScriptEditorDebuggerInspectedObject"))
name = obj->call("get_title");
else if (Object::cast_to<Node>(obj))
name = Object::cast_to<Node>(obj)->get_name();
} else if (Object::cast_to<Resource>(obj) && Object::cast_to<Resource>(obj)->get_name() != "") {
else if (Object::cast_to<Resource>(obj) && Object::cast_to<Resource>(obj)->get_name() != "")
name = Object::cast_to<Resource>(obj)->get_name();
} else {
else
name = obj->get_class();
}
set_tooltip(obj->get_class());