From 1a765e058253444ddaccd6f31167c8f236c0fb40 Mon Sep 17 00:00:00 2001 From: Stanislav Denisov Date: Fri, 31 Oct 2025 15:37:48 +0100 Subject: [PATCH] Fix unique texture collection (#1267) --- Editor/MaterialWindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Editor/MaterialWindow.cpp b/Editor/MaterialWindow.cpp index b90270da0..17c1beefa 100644 --- a/Editor/MaterialWindow.cpp +++ b/Editor/MaterialWindow.cpp @@ -1101,7 +1101,7 @@ void MaterialWindow::RecreateTexturePickerButtons() button.Create(""); button.SetImage(textureResource); - button.SetTooltip(textureName); + button.SetTooltip(wi::helper::GetFileNameFromPath(textureName)); texturePickerWindow.AddWidget(&button); button.SetVisible(false); @@ -1313,7 +1313,7 @@ wi::unordered_map MaterialWindow::CollectUniqueTextur { if (texture.resource.IsValid() && !texture.name.empty()) { - uniqueTextures[wi::helper::GetFileNameFromPath(texture.name)] = texture.resource; + uniqueTextures[texture.name] = texture.resource; } } }