qbsp: preserve brush side texinfo in collision hulls

17k -> 9.8k clipnodes on testmaps\retrojam1_ericw.map

setting the texinfo to 0 was defeating the bsp heuristic, because
texinfo 0 was marked as is_skip, which makes side_t::is_visible()
return false (which makes us not care about splitting those brush sides)
This commit is contained in:
Eric Wasylishen 2022-09-17 21:08:44 -06:00
parent 04df42f8e0
commit 09f0e2a0c5
1 changed files with 1 additions and 1 deletions

View File

@ -576,7 +576,7 @@ std::optional<bspbrush_t> LoadBrush(const mapentity_t &src, mapbrush_t &mapbrush
#endif
auto &dst = brush.sides.emplace_back();
dst.texinfo = hullnum.value_or(0) ? 0 : src.texinfo;
dst.texinfo = src.texinfo;
dst.planenum = src.planenum;
dst.bevel = src.bevel;
dst.source = &src;