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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2007-12-17 19:25:15 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2007-12-17 19:25:15 +0300
commit293c91c305405799ce3ff72c60f7ea8347eb16b1 (patch)
treeff55ace92eba67dbd20b96897cf707842a8656f5
parentd4ee29f70af17a044769e11694f9864263f54663 (diff)
Bugfix: with a lot of child particles (1500 per parent), some faces
would get no particles at all. Issue turns out to be precision of floats for incrementing a number between 0 and 1, now uses doubles..
-rw-r--r--source/blender/blenkernel/intern/particle_system.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/particle_system.c b/source/blender/blenkernel/intern/particle_system.c
index f223e8d8681..49ce809ad6a 100644
--- a/source/blender/blenkernel/intern/particle_system.c
+++ b/source/blender/blenkernel/intern/particle_system.c
@@ -1112,9 +1112,9 @@ int psys_threads_init_distribution(ParticleThread *threads, DerivedMesh *finaldm
}
}
else {
- float step, pos;
+ double step, pos;
- step= (totpart <= 1)? 0.5f: 1.0f/(totpart-1);
+ step= (totpart <= 1)? 0.5: 1.0/(totpart-1);
pos= 0.0f;
i= 0;