OBJ Exporter: fixed a problem where 3D floor sides were not exported correctly. Fixes #963

This commit is contained in:
biwa 2023-10-03 19:18:33 +02:00
parent 051d899db2
commit 7834bd1f15

View file

@ -517,7 +517,9 @@ namespace CodeImp.DoomBuilder.BuilderModes.IO
if (!skipTextures.Contains(texture))
{
CheckTextureName(ref texturegeo, ref texture);
texturegeo[texture].AddRange(OptimizeGeometry(m3d.Vertices, m3d.GeometryType));
// 3D floor sides are cut so that there are only triangles for the visible parts. Some of those might be
// triangles and not rectangles, so we can't optimize them into rectangles
texturegeo[texture].AddRange(OptimizeGeometry(m3d.Vertices, m3d.GeometryType, true));
}
}
}