mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-02-16 17:11:28 +00:00
OBJ Exporter: fixed a problem where 3D floor sides were not exported correctly. Fixes #963
This commit is contained in:
parent
051d899db2
commit
7834bd1f15
1 changed files with 3 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue