mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-26 05:41:45 +00:00
Fixed an issue where textures OBJ models with w components in their texture coordinates were not displayed correctly. Fixes #775
This commit is contained in:
parent
450198cfe7
commit
3fd7f99ba2
1 changed files with 1 additions and 1 deletions
|
@ -1527,7 +1527,7 @@ namespace CodeImp.DoomBuilder.GZBuilder.MD3
|
|||
{
|
||||
t.x = float.Parse(fields[0], CultureInfo.InvariantCulture);
|
||||
|
||||
if (fields.Length == 2)
|
||||
if (fields.Length >= 2)
|
||||
t.y = 1.0f - float.Parse(fields[1], CultureInfo.InvariantCulture);
|
||||
else
|
||||
t.y = 1.0f;
|
||||
|
|
Loading…
Reference in a new issue