mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-26 22:01:45 +00:00
Texture sets now work with textures from a directory or PK3/PK7 (it matches against the short 8 character name)
This commit is contained in:
parent
0a6ee07ba1
commit
cdf745745a
1 changed files with 3 additions and 3 deletions
|
@ -140,7 +140,7 @@ namespace CodeImp.DoomBuilder.Config
|
|||
internal bool AddTexture(ImageData image)
|
||||
{
|
||||
// Check against regex
|
||||
if(regex.IsMatch(image.Name.ToUpperInvariant()))
|
||||
if(regex.IsMatch(image.ShortName.ToUpperInvariant()))
|
||||
{
|
||||
// Matches! Add it.
|
||||
textures.Add(image);
|
||||
|
@ -158,7 +158,7 @@ namespace CodeImp.DoomBuilder.Config
|
|||
internal bool AddFlat(ImageData image)
|
||||
{
|
||||
// Check against regex
|
||||
if(regex.IsMatch(image.Name.ToUpperInvariant()))
|
||||
if(regex.IsMatch(image.ShortName.ToUpperInvariant()))
|
||||
{
|
||||
// Matches! Add it.
|
||||
flats.Add(image);
|
||||
|
@ -174,7 +174,7 @@ namespace CodeImp.DoomBuilder.Config
|
|||
// This only checks if the given image is a match
|
||||
internal bool IsMatch(ImageData image)
|
||||
{
|
||||
return regex.IsMatch(image.Name.ToUpperInvariant());
|
||||
return regex.IsMatch(image.ShortName.ToUpperInvariant());
|
||||
}
|
||||
|
||||
// This only checks if the given texture name is a match (mxd)
|
||||
|
|
Loading…
Reference in a new issue