diff options
author | Sebastián Barschkis <sebbas@sebbas.org> | 2020-08-04 12:44:56 +0300 |
---|---|---|
committer | Sebastián Barschkis <sebbas@sebbas.org> | 2020-08-04 12:45:05 +0300 |
commit | 03c2439d96e8f366646bf20095514c057593aa24 (patch) | |
tree | 062967b32fc4f44efe3e46c52ca1928491525c94 /intern/mantaflow/extern | |
parent | b38c04aebeae3b359acb2096a68ed30a1ec9940d (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/extern')
-rw-r--r-- | intern/mantaflow/extern/manta_fluid_API.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/mantaflow/extern/manta_fluid_API.h b/intern/mantaflow/extern/manta_fluid_API.h index dd5eab34ee0..124671467f7 100644 --- a/intern/mantaflow/extern/manta_fluid_API.h +++ b/intern/mantaflow/extern/manta_fluid_API.h @@ -77,7 +77,7 @@ int manta_get_frame(struct MANTA *fluid); float manta_get_timestep(struct MANTA *fluid); void manta_adapt_timestep(struct MANTA *fluid); bool manta_needs_realloc(struct MANTA *fluid, struct FluidModifierData *fmd); -void manta_update_pointers(struct MANTA *fluid, struct FluidModifierData *fmd); +void manta_update_pointers(struct MANTA *fluid, struct FluidModifierData *fmd, bool flush); /* Fluid accessors */ size_t manta_get_index(int x, int max_x, int y, int max_y, int z /*, int max_z */); |