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
path: root/source
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2006-06-14 00:33:45 +0400
committerTon Roosendaal <ton@blender.org>2006-06-14 00:33:45 +0400
commit090678de6630999b1d4accd0a448355e7b7dacd2 (patch)
tree8b3ad8cd76707c9cf4ca8c2fe456ed9903931f4d /source
parentbbc6468b344dafeb6d8027e370b014558424499a (diff)
Bug 4313
Particles: option "even" failed when faces where all exactly same sized, then it sometimes skipped entire faces. Just the regular <1.0 that had to be <=1.0
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/intern/effect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/effect.c b/source/blender/blenkernel/intern/effect.c
index 3abfdfd410c..853e7ba6eac 100644
--- a/source/blender/blenkernel/intern/effect.c
+++ b/source/blender/blenkernel/intern/effect.c
@@ -1869,11 +1869,11 @@ void build_particle_system(Object *ob)
foweights[curface] += remainder;
maxw= (paf->end-paf->sta)/foweights[curface];
}
-
+
if(foweights[curface]==0.0f)
break; /* WARN skips here out of particle generating */
else {
- if(foweights[curface] > 1.0f)
+ if(foweights[curface] >= 1.0f) /* note the >= here, this because of the < 1.0f above, it otherwise will stick to 1 face forever */
foweights[curface] -= 1.0f;
curjit= (int) foweights[curface];