qbsp: DividePlane: always use bugfix from 7e7d851 regardless of maxNodeSize setting
This commit is contained in:
parent
c0d61d4147
commit
fddb87287a
|
|
@ -563,14 +563,8 @@ DividePlane(surface_t *in, plane_t *split, surface_t **front,
|
||||||
|
|
||||||
// ericw -- added these CalcSurfaceInfo to recalculate the surf bbox.
|
// ericw -- added these CalcSurfaceInfo to recalculate the surf bbox.
|
||||||
// pretty sure their omission here was a bug.
|
// pretty sure their omission here was a bug.
|
||||||
// It's tied to options.maxNodeSize because that change needs
|
CalcSurfaceInfo(newsurf);
|
||||||
// valid bboxes to work well (txqbsp-xt calculated the node bbox from
|
CalcSurfaceInfo(in);
|
||||||
// faces in SelectPartition)
|
|
||||||
if (options.maxNodeSize >= 64) {
|
|
||||||
// recalc bboxes and flags
|
|
||||||
CalcSurfaceInfo(newsurf);
|
|
||||||
CalcSurfaceInfo(in);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (in->faces)
|
if (in->faces)
|
||||||
*front = in;
|
*front = in;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue