Fixed a problem where sprites with 16 rotations defined in the TEXTURES lump would not be handled correctly (they are still not displayed with 16 rotations, but don't throw an error anymore)

This commit is contained in:
biwa 2021-04-27 20:12:46 +02:00
parent 23c4325f96
commit 3ae5b1e27d

View file

@ -1381,7 +1381,9 @@ namespace CodeImp.DoomBuilder.Data
}
//mxd. Add sprites from sprites collection (because GetSpriteNames() doesn't return TEXTURES sprites)
foreach(ImageData data in sprites.Values) spritenames.Add(data.Name);
foreach(ImageData data in sprites.Values)
if(WADReader.IsValidSpriteName(data.Name))
spritenames.Add(data.Name);
//mxd. Get names of all voxel models, which can be used "as is" (these do not require corresponding sprite to work)
HashSet<string> voxelnames = new HashSet<string>(StringComparer.Ordinal);