diff options
Diffstat (limited to 'tools/editor/editor_path.cpp')
-rw-r--r-- | tools/editor/editor_path.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/editor/editor_path.cpp b/tools/editor/editor_path.cpp index 6c283d1f09..83ca04fcab 100644 --- a/tools/editor/editor_path.cpp +++ b/tools/editor/editor_path.cpp @@ -79,8 +79,14 @@ void EditorPath::_notification(int p_what) { } else if (obj->cast_to<Node>()) { name=obj->cast_to<Node>()->get_name(); - } else + } else if (obj->cast_to<Resource>() && obj->cast_to<Resource>()->get_name()!="") { + name=obj->cast_to<Resource>()->get_name(); + } else { name=obj->get_type(); + } + + set_tooltip(obj->get_type()); + label_font->draw(ci,Point2i(ofs,(size.height-label_font->get_height())/2+label_font->get_ascent()),name,Color(1,1,1),left); } else { |