mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-22 20:02:48 +00:00
- More model texture loading weirdness is now regarded
This commit is contained in:
parent
c2b18a913e
commit
34f2c308bd
1 changed files with 12 additions and 2 deletions
|
@ -192,10 +192,20 @@ namespace CodeImp.DoomBuilder.GZBuilder.MD3
|
|||
|
||||
Texture t = GetTexture(containers, path, device);
|
||||
|
||||
if(t == null)
|
||||
if(t != null)
|
||||
{
|
||||
mde.Model.Textures.Add(t);
|
||||
continue;
|
||||
}
|
||||
|
||||
// That didn't work, let's try to load the texture without the additional path
|
||||
path = result.Skins[m].Replace(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar);
|
||||
t = GetTexture(containers, path, device);
|
||||
|
||||
if (t == null)
|
||||
{
|
||||
mde.Model.Textures.Add(General.Map.Data.UnknownTexture3D.Texture);
|
||||
errors.Add("unable to load skin \"" + result.Skins[m] + "\"");
|
||||
errors.Add("unable to load skin \"" + path + "\"");
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue