summaryrefslogtreecommitdiffhomepage
path: root/editor/imgui-scenery.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/imgui-scenery.cpp')
-rw-r--r--editor/imgui-scenery.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/editor/imgui-scenery.cpp b/editor/imgui-scenery.cpp
index 85e7516f..e418924c 100644
--- a/editor/imgui-scenery.cpp
+++ b/editor/imgui-scenery.cpp
@@ -79,9 +79,7 @@ void app::draw_editor_scenery_pane(scenery_editor& ed)
}
if (ImGui::TableSetColumnIndex(3))
{
- StringView name = scenery.proto.atlas->name();
- if (name.hasPrefix(loader.SCENERY_PATH))
- name = name.exceptPrefix(loader.SCENERY_PATH.size());
+ StringView name = loader.strip_prefix(scenery.proto.atlas->name());
if (auto last = name.findLast('/'))
name = name.prefix(last.data());
else