Fix unique texture collection (#1267)
This commit is contained in:
committed by
GitHub
parent
ee82bfd7bc
commit
1a765e0582
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user