Skip to content

Commit 90da041

Browse files
committed
Show symlink target in the resource tooltip.
1 parent a3b42d8 commit 90da041

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

editor/inspector/editor_resource_tooltip_plugins.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@ VBoxContainer *EditorResourceTooltipPlugin::make_default_tooltip(const String &p
8181
Label *label = memnew(Label(vformat(TTR("Type: %s"), type)));
8282
vb->add_child(label);
8383
}
84+
85+
Ref<DirAccess> da = DirAccess::create(DirAccess::ACCESS_RESOURCES);
86+
if (da->is_link(p_resource_path)) {
87+
Label *link = memnew(Label(vformat(TTR("Link to: %s"), da->read_link(p_resource_path))));
88+
vb->add_child(link);
89+
}
8490
return vb;
8591
}
8692

0 commit comments

Comments
 (0)