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:
authorJanne Karhu <jhkarh@gmail.com>2009-12-30 18:58:59 +0300
committerJanne Karhu <jhkarh@gmail.com>2009-12-30 18:58:59 +0300
commit74829be79a0828df182ff2541e6d7c0bccf41305 (patch)
treea8dfe57aa14edb8e21341725f2d8cffe5fea5316 /source/blender/blenkernel/intern/particle.c
parent2d8c3076b295ca27c07a89956c5e9e5d4acfcdac (diff)
Fix for [#20430] Boids options for Flying and climbing do not work
* Boids didn't yet use global gravity
Diffstat (limited to 'source/blender/blenkernel/intern/particle.c')
-rw-r--r--source/blender/blenkernel/intern/particle.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/particle.c b/source/blender/blenkernel/intern/particle.c
index 992f63520ab..41ca5e1804a 100644
--- a/source/blender/blenkernel/intern/particle.c
+++ b/source/blender/blenkernel/intern/particle.c
@@ -361,6 +361,10 @@ void psys_check_group_weights(ParticleSettings *part)
BLI_freelistN(&part->dupliweights);
}
}
+int psys_uses_gravity(ParticleSimulationData *sim)
+{
+ return sim->scene->physics_settings.flag & PHYS_GLOBAL_GRAVITY && sim->psys->part && sim->psys->part->effector_weights->global_gravity != 0.0f;
+}
/************************************************/
/* Freeing stuff */
/************************************************/