[Bf-blender-cvs] [1f957995f60] functions: Fix birth moments of emitted particles
Jacques Lucke
noreply at git.blender.org
Wed Sep 11 17:59:50 CEST 2019
Commit: 1f957995f602c915bcf862b1dc60f96e3ecc36b9
Author: Jacques Lucke
Date: Wed Sep 11 17:59:45 2019 +0200
Branches: functions
https://developer.blender.org/rB1f957995f602c915bcf862b1dc60f96e3ecc36b9
Fix birth moments of emitted particles
===================================================================
M source/blender/simulations/bparticles/emitters.cpp
===================================================================
diff --git a/source/blender/simulations/bparticles/emitters.cpp b/source/blender/simulations/bparticles/emitters.cpp
index ab9c221506f..62f83d42c62 100644
--- a/source/blender/simulations/bparticles/emitters.cpp
+++ b/source/blender/simulations/bparticles/emitters.cpp
@@ -240,6 +240,7 @@ void SurfaceEmitter::emit(EmitterInterface &interface)
for (float factor = factor_start; factor < 1.0f; factor += factor_step) {
birth_moments.append(factor);
}
+ std::random_shuffle(birth_moments.begin(), birth_moments.end());
uint particles_to_emit = birth_moments.size();
More information about the Bf-blender-cvs
mailing list