diff options
author | Sebastián Barschkis <sebbas@sebbas.org> | 2020-01-29 21:21:09 +0300 |
---|---|---|
committer | Sebastián Barschkis <sebbas@sebbas.org> | 2020-01-29 21:21:52 +0300 |
commit | 33317b4647771e2031722531c6f9e6b124255a74 (patch) | |
tree | a7dd8d24682345b41305a62978386497837ff1d1 /source/blender/editors/physics | |
parent | 76489fbe7c127504940cd6d7185e43f50629f1fa (diff) |
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
Diffstat (limited to 'source/blender/editors/physics')
-rw-r--r-- | source/blender/editors/physics/physics_fluid.c | 3 |
1 files changed, 3 insertions, 0 deletions
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) { |