From 33317b4647771e2031722531c6f9e6b124255a74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Barschkis?= Date: Wed, 29 Jan 2020 19:21:09 +0100 Subject: Fluid: Fixes for flow objects and initial velocities This commit cleans up the flow emission code (i.e. the code that determines where flow is generated). It also addresses an issue with initial velocities. Related issues (that might be fixed through this commit) are: T73422, T72949 --- source/blender/editors/physics/physics_fluid.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/editors/physics/physics_fluid.c') diff --git a/source/blender/editors/physics/physics_fluid.c b/source/blender/editors/physics/physics_fluid.c index 8fa72d554be..63979e247bf 100644 --- a/source/blender/editors/physics/physics_fluid.c +++ b/source/blender/editors/physics/physics_fluid.c @@ -454,6 +454,9 @@ static void fluid_free_endjob(void *customdata) BKE_spacedata_draw_locks(false); WM_set_locked_interface(G_MAIN->wm.first, false); + /* Reflect the now empty cache in the viewport too. */ + DEG_id_tag_update(&job->ob->id, ID_RECALC_GEOMETRY); + /* Free was successful: * Report for ended free job and how long it took */ if (job->success) { -- cgit v1.2.3