From f236507689e5d30f103f1c5cc39ef44c86957491 Mon Sep 17 00:00:00 2001 From: groud Date: Thu, 11 Oct 2018 10:57:12 +0200 Subject: [PATCH] Fixes resources name not showing in the inspector --- editor/editor_properties.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp index 6eba9a9b674..7f2500e509e 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());