diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-03 15:24:33 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-03 15:24:33 +0100 |
| commit | 235078bae4ada8b7aed3c1cdf95d8288aaf81df4 (patch) | |
| tree | da2979408771be5e496d0ffaf5af3634cd61e4a3 /editor/imgui-scenery.cpp | |
| parent | 4e5cdeaa32fd73f160ee0d599ce958169082eeac (diff) | |
flush scenery popup work
Diffstat (limited to 'editor/imgui-scenery.cpp')
| -rw-r--r-- | editor/imgui-scenery.cpp | 4 |
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 |
