Removing POF_RENDERSIDES makes the entire PolyObject invisible, despite having POF_RENDERPLANES
I'm not sure if this is the proper way to do it, but this is how Curse of Knowledge SRB2 fixed this issue:
- In
R_AddLine
:
- if (line->polyseg && !(line->polyseg->flags & POF_RENDERSIDES))
- return;
- In
R_StoreWallRange
:
- if (sidedef->midtexture > 0 && sidedef->midtexture < numtextures)
+ if (sidedef->midtexture > 0 && sidedef->midtexture < numtextures
+ && !(curline->polyseg && !(curline->polyseg->flags & POF_RENDERSIDES)))