Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastián Barschkis <sebbas@sebbas.org>2020-08-04 12:44:56 +0300
committerSebastián Barschkis <sebbas@sebbas.org>2020-08-04 12:45:05 +0300
commit03c2439d96e8f366646bf20095514c057593aa24 (patch)
tree062967b32fc4f44efe3e46c52ca1928491525c94 /intern/mantaflow/intern/manta_fluid_API.cpp
parentb38c04aebeae3b359acb2096a68ed30a1ec9940d (diff)
Fluid: Do not show fluid if frame is out of cache range
Before: If the current frame is out of the cache start/end range, the viewport will show the fluid as it was on the last frame that was still in the cache frame range. Now: If the current frame is out of the cache start/end range, the viewport will show no fluid at all (even if there are cache files present for this frame). This fix is related / in response to T79423.
Diffstat (limited to 'intern/mantaflow/intern/manta_fluid_API.cpp')
-rw-r--r--intern/mantaflow/intern/manta_fluid_API.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/mantaflow/intern/manta_fluid_API.cpp b/intern/mantaflow/intern/manta_fluid_API.cpp
index f58ac186ff1..530dbd49b7c 100644
--- a/intern/mantaflow/intern/manta_fluid_API.cpp
+++ b/intern/mantaflow/intern/manta_fluid_API.cpp
@@ -230,11 +230,11 @@ bool manta_needs_realloc(MANTA *fluid, FluidModifierData *fmd)
return fluid->needsRealloc(fmd);
}
-void manta_update_pointers(struct MANTA *fluid, struct FluidModifierData *fmd)
+void manta_update_pointers(struct MANTA *fluid, struct FluidModifierData *fmd, bool flush)
{
if (!fluid || !fmd)
return;
- fluid->updatePointers(fmd);
+ fluid->updatePointers(fmd, flush);
}
/* Fluid accessors */