diff options
author | Sebastián Barschkis <sebbas@sebbas.org> | 2020-05-06 14:24:53 +0300 |
---|---|---|
committer | Sebastián Barschkis <sebbas@sebbas.org> | 2020-05-06 14:25:00 +0300 |
commit | 11d440f1a261a0b80d909af77261ee47710a4170 (patch) | |
tree | 568b5086dc77d4cf0caa095a8d9fe7310108670c | |
parent | 7043f8b815f3da10e56668230dee1a438af7e49d (diff) |
Fix T76430: Quick smoke not rendering Cycles and Eevee
Temporary fix that will skip cache invalidation from flow / effector objects.
-rw-r--r-- | source/blender/blenkernel/intern/fluid.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/fluid.c b/source/blender/blenkernel/intern/fluid.c index 96efac8f2c5..7adac2d4a4d 100644 --- a/source/blender/blenkernel/intern/fluid.c +++ b/source/blender/blenkernel/intern/fluid.c @@ -3762,14 +3762,16 @@ static void BKE_fluid_modifier_processDomain(FluidModifierData *mmd, MEM_freeN(objs); } + /* TODO (sebbas): Cache reset for when flow / effector object need update flag is set. */ +# if 0 /* If the just updated flags now carry the 'outdated' flag, reset the cache here! * Plus sanity check: Do not clear cache on file load. */ if (mds->cache_flag & FLUID_DOMAIN_OUTDATED_DATA && ((mds->flags & FLUID_DOMAIN_FILE_LOAD) == 0)) { - mds->cache_flag &= ~FLUID_DOMAIN_OUTDATED_DATA; BKE_fluid_cache_free_all(mds, ob); BKE_fluid_modifier_reset_ex(mmd, false); } +# endif /* Fluid domain init must not fail in order to continue modifier evaluation. */ if (!mds->fluid && !BKE_fluid_modifier_init(mmd, depsgraph, ob, scene, me)) { |