diff options
author | Sebastián Barschkis <sebbas@sebbas.org> | 2020-04-19 22:13:27 +0300 |
---|---|---|
committer | Sebastián Barschkis <sebbas@sebbas.org> | 2020-04-22 17:18:13 +0300 |
commit | 6485d8b78a9b284eb2771175e961d5a5eeb86502 (patch) | |
tree | e54751fb3d5f38d230a314579e8f164ca96680fe | |
parent | fdea3dd7e7109a814561e4a83ff3331badf04e24 (diff) |
Fluid: Fix for caches being released when file is loaded
-rw-r--r-- | source/blender/blenkernel/intern/fluid.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/fluid.c b/source/blender/blenkernel/intern/fluid.c index 08b5b788afd..0f6b85b366b 100644 --- a/source/blender/blenkernel/intern/fluid.c +++ b/source/blender/blenkernel/intern/fluid.c @@ -4163,6 +4163,12 @@ struct Mesh *BKE_fluid_modifier_do( mmd->domain->cache_flag &= ~FLUID_DOMAIN_OUTDATED_PARTICLES; mmd->domain->cache_flag &= ~FLUID_DOMAIN_OUTDATED_GUIDE; } + else if (mmd->type & MOD_FLUID_TYPE_FLOW && mmd->flow) { + mmd->flow->flags &= ~FLUID_FLOW_NEEDS_UPDATE; + } + else if (mmd->type & MOD_FLUID_TYPE_EFFEC && mmd->effector) { + mmd->effector->flags &= ~FLUID_EFFECTOR_NEEDS_UPDATE; + } if (!result) { result = BKE_mesh_copy_for_eval(me, false); } |