From a5c2bc3c23292af2fbd5d01d7582c21b788332cd Mon Sep 17 00:00:00 2001 From: Kent Mein Date: Thu, 14 Oct 2004 12:14:39 +0000 Subject: [PATCH] Kenneth Strom's patch to make Fractal Subdivide work in the - direction as well as the positive. Kent --- source/blender/src/editmesh_tools.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/blender/src/editmesh_tools.c b/source/blender/src/editmesh_tools.c index ce07beb3c6c..6350cfe900f 100644 --- a/source/blender/src/editmesh_tools.c +++ b/source/blender/src/editmesh_tools.c @@ -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); }