diff options
| author | Juan Linietsky | 2015-09-01 00:49:47 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2015-09-01 00:49:47 -0300 |
| commit | 688047a4c95e688984c8000722e9fd368d3bced6 (patch) | |
| tree | 4a9b6695ccfe5b3a50c5e92b7dd88aea61251dcd /tools/editor/editor_path.cpp | |
| parent | cf57a654d7d09fe169455ffc2049cd4bfec660f3 (diff) | |
| download | godot-688047a4c95e688984c8000722e9fd368d3bced6.tar.gz godot-688047a4c95e688984c8000722e9fd368d3bced6.tar.zst godot-688047a4c95e688984c8000722e9fd368d3bced6.zip | |
-removed resources dock, good bye old friend
Diffstat (limited to 'tools/editor/editor_path.cpp')
| -rw-r--r-- | tools/editor/editor_path.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/editor/editor_path.cpp b/tools/editor/editor_path.cpp index 86fd79d01..94e2efe34 100644 --- a/tools/editor/editor_path.cpp +++ b/tools/editor/editor_path.cpp @@ -73,7 +73,11 @@ void EditorPath::_notification(int p_what) { if (obj->cast_to<Resource>()) { Resource *r = obj->cast_to<Resource>(); - name=r->get_name(); + if (r->get_path().is_resource_file()) + name=r->get_path().get_file(); + else + name=r->get_name(); + if (name=="") name=r->get_type(); } else if (obj->cast_to<Node>()) { |
