Fix error in volume computation that led to weird results. Fixes all problems reported by DawnBringer :).

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1885 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues 2012-01-01 12:13:12 +00:00
parent 1b805666e7
commit 6e8d18baed

View File

@ -436,9 +436,9 @@ ENDCRUSH:
c->bmin=bmin; c->bmax=bmax; c->bmin=bmin; c->bmax=bmax;
// Find the longest axis to know which way to split the cluster // Find the longest axis to know which way to split the cluster
r=(c->rmax-c->rmin); r=(c->rmax-c->rmin) + 1;
g=(c->vmax-c->vmin); g=(c->vmax-c->vmin) + 1;
b=(c->bmax-c->bmin); b=(c->bmax-c->bmin) + 1;
c->data.cut.volume = r*g*b; c->data.cut.volume = r*g*b;