mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-02-20 19:02:12 +00:00
OBJ Models: fixed a crash that occurred when the usemtl directive had the texture to use in quotes. Fixes #758
This commit is contained in:
parent
fd68806dc6
commit
27ba367174
1 changed files with 4 additions and 1 deletions
|
@ -1425,8 +1425,11 @@ namespace CodeImp.DoomBuilder.GZBuilder.MD3
|
|||
worldvertices.Clear();
|
||||
polyindiceslist.Clear();
|
||||
}
|
||||
|
||||
// Add texture name. It might be in quotes, so remove them.
|
||||
// See https://github.com/jewalky/UltimateDoomBuilder/issues/758
|
||||
if (fields.Length >= 2)
|
||||
result.Skins.Add(fields[1]);
|
||||
result.Skins.Add(fields[1].Replace("\"", ""));
|
||||
|
||||
surfaceskinid++;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue