Kenneth Strom's patch to make Fractal Subdivide work in the -

direction as well as the positive.

Kent
This commit is contained in:
2004-10-14 12:14:39 +00:00
parent ed3a7e9ed3
commit a5c2bc3c23

View File

@@ -1431,9 +1431,9 @@ void subdivideflag(int flag, float rad, int beauty)
}
else if(rad< 0.0) { /* fractal subdivide */
fac= rad* VecLenf(eed->v1->co, eed->v2->co);
vec1[0]= fac*BLI_drand();
vec1[1]= fac*BLI_drand();
vec1[2]= fac*BLI_drand();
vec1[0]= fac*(0.5-BLI_drand());
vec1[1]= fac*(0.5-BLI_drand());
vec1[2]= fac*(0.5-BLI_drand());
VecAddf(vec, vec, vec1);
}