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:
authorSergey Sharybin <sergey.vfx@gmail.com>2018-06-12 17:36:43 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2018-06-12 17:37:40 +0300
commitdeb3d73eea3098c2222eeeca9926759f3ec86784 (patch)
treea64af931424a7edb0f2b943cbe5fdac79572e816 /source/blender/blenkernel/BKE_particle.h
parent7d36408b8279a10940f7f1f5a9f2e59c89d5c680 (diff)
Particle: Use loclaized RNG for physics simulation
Avoids threading conflicts between multiple particle systems being simulated.
Diffstat (limited to 'source/blender/blenkernel/BKE_particle.h')
-rw-r--r--source/blender/blenkernel/BKE_particle.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_particle.h b/source/blender/blenkernel/BKE_particle.h
index d87d63454f0..734eb8cfa09 100644
--- a/source/blender/blenkernel/BKE_particle.h
+++ b/source/blender/blenkernel/BKE_particle.h
@@ -90,6 +90,8 @@ typedef struct ParticleSimulationData {
* maximum value per time step is important. Only sph_integrate makes use of
* this at the moment. Other solvers could, too. */
float courant_num;
+ /* Only valid during dynamics_step(). */
+ struct RNG* rng;
} ParticleSimulationData;
typedef struct SPHData {