summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-10-11 17:21:58 +0200
committerGitHub <noreply@github.com>2018-10-11 17:21:58 +0200
commite4b1284210f132e93e69ce8d1575286f91460bd6 (patch)
tree123e64dfd13deec3be227fdddd31f94b9a391220 /editor
parent4c1a5d9cfe2da761bfe17d52126deabc1f1c1bd3 (diff)
parentf236507689e5d30f103f1c5cc39ef44c86957491 (diff)
Merge pull request #22931 from groud/fix_resource_name_inspector
Fixes resources name not showing in the inspector
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_properties.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp
index 6eba9a9b67..7f2500e509 100644
--- a/editor/editor_properties.cpp
+++ b/editor/editor_properties.cpp
@@ -2380,7 +2380,7 @@ void EditorPropertyResource::update_property() {
if (res->get_name() != String()) {
assign->set_text(res->get_name());
} else if (res->get_path().is_resource_file()) {
- assign->set_text(res->get_name());
+ assign->set_text(res->get_path().get_file());
assign->set_tooltip(res->get_path());
} else {
assign->set_text(res->get_class());