Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Mein <mein@cs.umn.edu>2004-10-14 16:14:39 +0400
committerKent Mein <mein@cs.umn.edu>2004-10-14 16:14:39 +0400
commita5c2bc3c23292af2fbd5d01d7582c21b788332cd (patch)
tree13f1ed92c0a1cc2d558fb50d04639f0c440205ca /source/blender/src/editmesh_tools.c
parented3a7e9ed32d32a3af0f608309e90ed4b0bea15f (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.c6
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);
}