Smoke bugfix: Collision objects were completely broken in some cases since no tessfac...
authorDaniel Genrich <daniel.genrich@gmx.net>
Tue, 20 Mar 2012 20:32:17 +0000 (20:32 +0000)
committerDaniel Genrich <daniel.genrich@gmx.net>
Tue, 20 Mar 2012 20:32:17 +0000 (20:32 +0000)
source/blender/blenkernel/intern/smoke.c

index 5b991b7fad86abeb0efcd9f67d43cf9a9733efcf..ff5ed0d434810b48a87ac99234892b6d84744f2d 100644 (file)
@@ -309,6 +309,7 @@ static int smokeModifier_init (SmokeModifierData *smd, Object *ob, Scene *scene,
                        copy_m4_m4(scs->mat, ob->obmat);
                        copy_m4_m4(scs->mat_old, ob->obmat);
 
+                       DM_ensure_tessface(dm);
                        fill_scs_points(ob, dm, scs);
                }