Fix unique texture collection (#1267)

This commit is contained in:
Stanislav Denisov
2025-10-31 15:37:48 +01:00
committed by GitHub
parent ee82bfd7bc
commit 1a765e0582
+2 -2
View File
@@ -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<std::string, wi::Resource> MaterialWindow::CollectUniqueTextur
{
if (texture.resource.IsValid() && !texture.name.empty())
{
uniqueTextures[wi::helper::GetFileNameFromPath(texture.name)] = texture.resource;
uniqueTextures[texture.name] = texture.resource;
}
}
}