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-01-16 00:06:43 +0300
committerSebastián Barschkis <sebbas@sebbas.org>2020-01-16 00:07:06 +0300
commit689a873029b9554a60ee1198344a29cd2f567659 (patch)
treea4ea9652a59f2248fb619643fcfc51e4304e2cbc /source/blender/blenkernel
parent848b28d71e18bd6ba569b1d38286faf784f07648 (diff)
Fix T72860: Mantaflow Fluid Sim fails when simulation starts after frame 1
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r--source/blender/blenkernel/intern/fluid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/fluid.c b/source/blender/blenkernel/intern/fluid.c
index 1bd86f3c690..0213d10796a 100644
--- a/source/blender/blenkernel/intern/fluid.c
+++ b/source/blender/blenkernel/intern/fluid.c
@@ -2859,7 +2859,7 @@ static void update_flowsfluids(struct Depsgraph *depsgraph,
color_b_in,
phiout_in);
}
- else if (mfs->behavior == FLUID_FLOW_BEHAVIOR_GEOMETRY && mmd2->time > 2) {
+ else if (mfs->behavior == FLUID_FLOW_BEHAVIOR_GEOMETRY && !is_first_frame) {
apply_inflow_fields(mfs,
0.0f,
FLT_MAX,