diff options
author | Juan Linietsky <reduzio@gmail.com> | 2014-09-21 01:43:42 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2014-09-21 01:43:42 -0300 |
commit | 11a5ed508b1cbde61a4d9dd4f469e86e74667623 (patch) | |
tree | e4bc1926057d788aeeef3633930bb958eb976d3a /tools/editor/editor_path.cpp | |
parent | c5b905fca82f1437486f2168270c5caa0b4bf104 (diff) | |
download | redot-engine-11a5ed508b1cbde61a4d9dd4f469e86e74667623.tar.gz |
Fixed too many little issues, check the issues closed today.
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 { |