qbsp: DividePlane: always use bugfix from 7e7d851 regardless of maxNodeSize setting

This commit is contained in:
Eric Wasylishen 2015-10-23 17:22:05 -06:00
parent c0d61d4147
commit fddb87287a
1 changed files with 2 additions and 8 deletions

View File

@ -563,14 +563,8 @@ DividePlane(surface_t *in, plane_t *split, surface_t **front,
// ericw -- added these CalcSurfaceInfo to recalculate the surf bbox.
// pretty sure their omission here was a bug.
// It's tied to options.maxNodeSize because that change needs
// valid bboxes to work well (txqbsp-xt calculated the node bbox from
// faces in SelectPartition)
if (options.maxNodeSize >= 64) {
// recalc bboxes and flags
CalcSurfaceInfo(newsurf);
CalcSurfaceInfo(in);
}
CalcSurfaceInfo(newsurf);
CalcSurfaceInfo(in);
if (in->faces)
*front = in;