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:
authorCampbell Barton <ideasman42@gmail.com>2012-02-27 13:37:59 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-02-27 13:37:59 +0400
commit120297734b4a01d93e5223e02f255b5aef01e281 (patch)
treee21438b5a7d0b9517d03f9f76129c16b94af4861 /source/blender/blenkernel/intern/particle_system.c
parent8fcb66588b7463e369a3cf97b9a2b14381e99ff7 (diff)
fix for emitting particles (needed tessfaces).
this fixes the cloud-gen addon.
Diffstat (limited to 'source/blender/blenkernel/intern/particle_system.c')
-rw-r--r--source/blender/blenkernel/intern/particle_system.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/particle_system.c b/source/blender/blenkernel/intern/particle_system.c
index e48495bcc44..8d12460b71b 100644
--- a/source/blender/blenkernel/intern/particle_system.c
+++ b/source/blender/blenkernel/intern/particle_system.c
@@ -4425,6 +4425,10 @@ void particle_system_update(Scene *scene, Object *ob, ParticleSystem *psys)
if(!sim.psmd->dm)
return;
+ if (part->from != PART_FROM_VERT) {
+ DM_ensure_tessface(sim.psmd->dm);
+ }
+
/* execute drivers only, as animation has already been done */
BKE_animsys_evaluate_animdata(scene, &part->id, part->adt, cfra, ADT_RECALC_DRIVERS);