mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-26 22:01:45 +00:00
Fixed a bug where the wrong texture/flat with the same name would be displayed in the texture browser when they were loaded from a PK3 or directory
This commit is contained in:
parent
cbaa0c030c
commit
8824a2bb94
1 changed files with 3 additions and 1 deletions
|
@ -481,9 +481,11 @@ namespace CodeImp.DoomBuilder.Controls
|
|||
|
||||
// biwa. Removes all duplicates. That was done each time in AddItem before. Much faster
|
||||
// to do it in one go. Not sure when there are actually duplicates
|
||||
// Depending on whether a floor or a wall is selected the corrosponding images come first
|
||||
// in the list, so alawys keep the first occurence
|
||||
public void MakeTexturesUnique()
|
||||
{
|
||||
items = items.GroupBy(item => item.TextureName).Select(item => item.Last()).ToList();
|
||||
items = items.GroupBy(item => item.TextureName).Select(item => item.First()).ToList();
|
||||
}
|
||||
|
||||
// This fills the list based on the objectname filter
|
||||
|
|
Loading…
Reference in a new issue