[Bf-blender-cvs] [21889a54758] functions: fix crash with negative emitter rate
Jacques Lucke
noreply at git.blender.org
Thu Sep 19 10:40:26 CEST 2019
Commit: 21889a547582a3ba24f87dbb998ec2aa65717bec
Author: Jacques Lucke
Date: Thu Sep 19 10:30:24 2019 +0200
Branches: functions
https://developer.blender.org/rB21889a547582a3ba24f87dbb998ec2aa65717bec
fix crash with negative emitter rate
===================================================================
M source/blender/simulations/bparticles/emitters.cpp
===================================================================
diff --git a/source/blender/simulations/bparticles/emitters.cpp b/source/blender/simulations/bparticles/emitters.cpp
index 5efa16fbd51..c947a96c1f3 100644
--- a/source/blender/simulations/bparticles/emitters.cpp
+++ b/source/blender/simulations/bparticles/emitters.cpp
@@ -235,6 +235,9 @@ void SurfaceEmitter::emit(EmitterInterface &interface)
if (m_object->type != OB_MESH) {
return;
}
+ if (m_rate <= 0.0f) {
+ return;
+ }
Vector<float> birth_moments;
float factor_start, factor_step;
More information about the Bf-blender-cvs
mailing list