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-09-09 17:51:32 +0300
committerSebastián Barschkis <sebbas@sebbas.org>2020-09-09 23:02:40 +0300
commitd61d21078643da4a7258142d8e48e14c1325fb11 (patch)
tree1215b5b0e962989ffd47da779960eff0978fbb20 /source/blender
parent92fc32e48d4ec720a81ca7f1f3c842909caea449 (diff)
Fluid: Fix for GSoC display controls project
Load all grids when the grid display option is turned on. Otherwise, the grid from the viewport display options might not have been loaded from the cache.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/blenkernel/intern/fluid.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/fluid.c b/source/blender/blenkernel/intern/fluid.c
index 82ccd33a53b..e3063d1de75 100644
--- a/source/blender/blenkernel/intern/fluid.c
+++ b/source/blender/blenkernel/intern/fluid.c
@@ -3975,6 +3975,8 @@ static void BKE_fluid_modifier_processDomain(FluidModifierData *fmd,
copy_v3_v3_int(o_shift, fds->shift);
bool read_partial = false, read_all = false;
+ bool grid_display = fds->use_coba;
+
/* Try to read from cache and keep track of read success. */
if (read_cache) {
@@ -4038,7 +4040,8 @@ static void BKE_fluid_modifier_processDomain(FluidModifierData *fmd,
}
}
- read_partial = !baking_data && !baking_particles && !baking_mesh && next_data;
+ read_partial = !baking_data && !baking_particles && !baking_mesh && next_data &&
+ !grid_display;
read_all = !read_partial && with_resumable_cache;
has_data = manta_read_data(fds->fluid, fmd, data_frame, read_all);
}