OBJ Exporter: fixed a problem where the wrong textures were used on 3D floors when they have the "use upper/lower texture" flag set

This commit is contained in:
biwa 2023-10-03 19:23:03 +02:00
parent 7834bd1f15
commit 9d8ddfad35

View file

@ -513,7 +513,7 @@ namespace CodeImp.DoomBuilder.BuilderModes.IO
foreach(VisualMiddle3D m3d in part.middle3d)
{
if(m3d.Vertices == null) continue;
texture = m3d.GetControlLinedef().Front.MiddleTexture;
texture = m3d.GetTextureName();
if (!skipTextures.Contains(texture))
{
CheckTextureName(ref texturegeo, ref texture);