diff options
author | Kent Mein <mein@cs.umn.edu> | 2004-10-14 16:14:39 +0400 |
---|---|---|
committer | Kent Mein <mein@cs.umn.edu> | 2004-10-14 16:14:39 +0400 |
commit | a5c2bc3c23292af2fbd5d01d7582c21b788332cd (patch) | |
tree | 13f1ed92c0a1cc2d558fb50d04639f0c440205ca /source/blender/src/editmesh_tools.c | |
parent | ed3a7e9ed32d32a3af0f608309e90ed4b0bea15f (diff) |
Kenneth Strom's patch to make Fractal Subdivide work in the -
direction as well as the positive.
Kent
Diffstat (limited to 'source/blender/src/editmesh_tools.c')
-rw-r--r-- | source/blender/src/editmesh_tools.c | 6 |
1 files 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); } |