Merge pull request #22931 from groud/fix_resource_name_inspector

Fixes resources name not showing in the inspector
This commit is contained in:
Rémi Verschelde 2018-10-11 17:21:58 +02:00 committed by GitHub
commit e4b1284210
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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());