diff options
author | Sebastián Barschkis <sebbas@sebbas.org> | 2020-03-20 12:42:43 +0300 |
---|---|---|
committer | Sebastián Barschkis <sebbas@sebbas.org> | 2020-03-20 12:42:54 +0300 |
commit | 3bab9b486876ea3d44889e8b6c72cc70aced446f (patch) | |
tree | 471349f2b97e92e83efd5398478cb484711b0f93 /source/blender/blenkernel/BKE_fluid.h | |
parent | b8574c7e56211175a1ca990f904ff6b825686844 (diff) |
Fix T74154: Mantaflow crash: Baking data for domain type fluid on a plane.
Added sanity check to prevent bakes from being triggered when there is no fluid object present.
Diffstat (limited to 'source/blender/blenkernel/BKE_fluid.h')
-rw-r--r-- | source/blender/blenkernel/BKE_fluid.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_fluid.h b/source/blender/blenkernel/BKE_fluid.h index 08bc20c60b5..2c5742d3dc7 100644 --- a/source/blender/blenkernel/BKE_fluid.h +++ b/source/blender/blenkernel/BKE_fluid.h @@ -52,7 +52,7 @@ void BKE_fluid_modifier_copy(const struct FluidModifierData *mmd, struct FluidModifierData *tmmd, const int flag); -void BKE_fluid_reallocate_fluid(struct FluidDomainSettings *mds, int res[3], int free_old); +bool BKE_fluid_reallocate_fluid(struct FluidDomainSettings *mds, int res[3], int free_old); void BKE_fluid_reallocate_copy_fluid(struct FluidDomainSettings *mds, int o_res[3], int n_res[3], |