Fix T72860: Mantaflow Fluid Sim fails when simulation starts after frame 1

This commit is contained in:
Sebastián Barschkis 2020-01-15 22:06:43 +01:00
parent 848b28d71e
commit 689a873029
Notes: blender-bot 2023-02-13 23:48:47 +01:00
Referenced by issue #72860, Mantaflow Fluid Sim fails when simulation starts after frame 1
1 changed files with 1 additions and 1 deletions

View File

@ -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,