mirror of
https://github.com/godotengine/godot.git
synced 2025-10-28 04:04:24 +00:00
Better supported for remote object editing with the inspector with a simple dictionary editor implement
This commit is contained in:
parent
ccf76798d5
commit
c655fc7cd8
5 changed files with 298 additions and 14 deletions
|
|
@ -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());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue