* enable high res smoke rendering in voxeldata texture
authorMatt Ebb <matt@mke3.net>
Wed, 16 Sep 2009 03:10:25 +0000 (03:10 +0000)
committerMatt Ebb <matt@mke3.net>
Wed, 16 Sep 2009 03:10:25 +0000 (03:10 +0000)
source/blender/render/intern/source/voxeldata.c

index 17858e55e3db966f6fd5c5efb820efa3d9fb278b..9318d37620cc953661a47a23f150e8b5c8335fa7 100644 (file)
@@ -167,12 +167,10 @@ void init_frame_smoke(Render *re, VoxelData *vd, Tex *tex)
                SmokeModifierData *smd = (SmokeModifierData *)md;
                
                if(smd->domain && smd->domain->fluid) {
-                       //int big = (smd->domain->flags & MOD_SMOKE_HIGHRES);
-                       int big=0;
                        
-                       if (big) {
-                               //smoke_turbulence_get_res(smd->domain->wt, vd->resol);
-                               //vd->dataset = smoke_turbulence_get_density(smd->domain->wt);
+                       if (smd->domain->flags & MOD_SMOKE_HIGHRES) {
+                               smoke_turbulence_get_res(smd->domain->wt, vd->resol);
+                               vd->dataset = smoke_turbulence_get_density(smd->domain->wt);
                        } else {
                                VECCOPY(vd->resol, smd->domain->res);
                                vd->dataset = smoke_get_density(smd->domain->fluid);