[Bf-blender-cvs] [9b098e340be] fluid-mantaflow: Mantaflow: Reset all cache pause frames fields when data bake is freed

Sebastián Barschkis noreply at git.blender.org
Fri Nov 8 12:47:23 CET 2019


Commit: 9b098e340bee20525ce2a806b33693c06d3cc2b5
Author: Sebastián Barschkis
Date:   Fri Nov 8 12:47:08 2019 +0100
Branches: fluid-mantaflow
https://developer.blender.org/rB9b098e340bee20525ce2a806b33693c06d3cc2b5

Mantaflow: Reset all cache pause frames fields when data bake is freed

Data Free was only resetting its own pause frame even though all bakes get deleted during this operation.

===================================================================

M	source/blender/editors/physics/physics_manta.c

===================================================================

diff --git a/source/blender/editors/physics/physics_manta.c b/source/blender/editors/physics/physics_manta.c
index 76c5c285572..bb4e93c5b44 100644
--- a/source/blender/editors/physics/physics_manta.c
+++ b/source/blender/editors/physics/physics_manta.c
@@ -451,8 +451,11 @@ static void manta_free_startjob(void *customdata,
     if (BLI_exists(tmpDir))
       BLI_delete(tmpDir, true, true);
 
-    /* Reset pause frame */
+    /* Reset pause frames */
     mds->cache_frame_pause_data = 0;
+    mds->cache_frame_pause_noise = 0;
+    mds->cache_frame_pause_mesh = 0;
+    mds->cache_frame_pause_particles = 0;
   }
   else if (STREQ(job->type, "MANTA_OT_free_noise")) {
     mds->cache_flag &= ~(FLUID_DOMAIN_BAKING_NOISE | FLUID_DOMAIN_BAKED_NOISE);



More information about the Bf-blender-cvs mailing list