mod = loadmodel;
for (i = 0;i < loadmodel->brush.numsubmodels;i++)
{
- qboolean boxready;
if (i > 0)
{
char name[10];
// because q3map2 sometimes lies (mostly to affect the lightgrid),
// which can in turn mess up the farclip (as well as culling when
// outside the level - an unimportant concern)
- boxready = false;
//printf("Editing model %d... BEFORE re-bounding: %f %f %f - %f %f %f\n", i, mod->normalmins[0], mod->normalmins[1], mod->normalmins[2], mod->normalmaxs[0], mod->normalmaxs[1], mod->normalmaxs[2]);
for (j = 0;j < mod->nummodelsurfaces;j++)
int k;
if (!surface->num_vertices)
continue;
- if (!boxready)
- // (div0) do we REALLY want this? Above it says "enlarge the
- // bounding box", but this completely regenerates this.
- // Remove this part and the variable to make it ACTUALLY
- // enlarge the bbox.
- {
- VectorCopy(v, mod->normalmins);
- VectorCopy(v, mod->normalmaxs);
- boxready = true;
- }
for (k = 0;k < surface->num_vertices;k++, v += 3)
{
mod->normalmins[0] = min(mod->normalmins[0], v[0]);