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:
biwa 2022-09-03 12:25:26 +02:00
parent 450198cfe7
commit 3fd7f99ba2

View file

@ -1527,7 +1527,7 @@ namespace CodeImp.DoomBuilder.GZBuilder.MD3
{ {
t.x = float.Parse(fields[0], CultureInfo.InvariantCulture); 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); t.y = 1.0f - float.Parse(fields[1], CultureInfo.InvariantCulture);
else else
t.y = 1.0f; t.y = 1.0f;