diff options
author | Sebastián Barschkis <sebbas@sebbas.org> | 2020-04-22 15:58:41 +0300 |
---|---|---|
committer | Sebastián Barschkis <sebbas@sebbas.org> | 2020-04-22 17:19:19 +0300 |
commit | f148bd3795ea352642b33d11a027347abac11367 (patch) | |
tree | 8042231adee85117b0677aa4776f090a5b3964d1 /source/blender/blenloader/intern/readfile.c | |
parent | 6485d8b78a9b284eb2771175e961d5a5eeb86502 (diff) |
Fluid: Fixes for cache 'Replay' mode
General fixes and improvements for the cache. Previous commits on fluids broke the 'Replay' cache a bit.
Diffstat (limited to 'source/blender/blenloader/intern/readfile.c')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 83d14761daa..8837dccb837 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -5316,6 +5316,12 @@ static void lib_link_object(FileData *fd, Main *bmain, Object *ob) /* Flag for refreshing the simulation after loading */ mmd->domain->flags |= FLUID_DOMAIN_FILE_LOAD; } + else if (mmd && (mmd->type == MOD_FLUID_TYPE_FLOW) && mmd->flow) { + mmd->flow->flags &= ~FLUID_FLOW_NEEDS_UPDATE; + } + else if (mmd && (mmd->type == MOD_FLUID_TYPE_EFFEC) && mmd->effector) { + mmd->effector->flags &= ~FLUID_EFFECTOR_NEEDS_UPDATE; + } } /* texture field */ |