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:
parent
04df42f8e0
commit
09f0e2a0c5
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue