Fix T48061: Crash with adaptive domain and cases when there's no smoke
authorAlexander Gavrilov <angavrilov@gmail.com>
Wed, 27 Jul 2016 13:40:32 +0000 (15:40 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 27 Jul 2016 13:40:32 +0000 (15:40 +0200)
source/blender/blenkernel/intern/smoke.c

index d20994a2e39626f8a25d51dd233195655f42030e..c7e073a7fc111ef5f70f27492ec36de9f0c3fdad 100644 (file)
@@ -2772,8 +2772,7 @@ static void smokeModifier_process(SmokeModifierData *smd, Scene *scene, Object *
                // create shadows before writing cache so they get stored
                smoke_calc_transparency(sds, scene);
 
-               if (sds->wt)
-               {
+               if (sds->wt && sds->total_cells > 1) {
                        smoke_turbulence_step(sds->wt, sds->fluid);
                }