[Bf-blender-cvs] [ecfb7eab0ca] master: Fix (unreported) hair particle 'Delete Edit' missing children hair updates in particle editmode

Philipp Oeser noreply at git.blender.org
Thu Dec 19 21:05:03 CET 2019


Commit: ecfb7eab0ca7fd3264648713170d58c4ffa33e5d
Author: Philipp Oeser
Date:   Fri Sep 27 23:00:42 2019 +0200
Branches: master
https://developer.blender.org/rBecfb7eab0ca7fd3264648713170d58c4ffa33e5d

Fix (unreported) hair particle 'Delete Edit' missing children hair
updates in particle editmode

Particles themselves were cleared correctly but this was not tagging
batch cache dirty.

Might move this to a utility function later [since it is used in more
places], but that is for after going over some more reports...

Reviewers: sergey

Differential Revision: https://developer.blender.org/D5925

===================================================================

M	source/blender/editors/physics/particle_edit.c

===================================================================

diff --git a/source/blender/editors/physics/particle_edit.c b/source/blender/editors/physics/particle_edit.c
index f16a372cb3c..9d3388bd220 100644
--- a/source/blender/editors/physics/particle_edit.c
+++ b/source/blender/editors/physics/particle_edit.c
@@ -5324,6 +5324,7 @@ static int clear_edited_exec(bContext *C, wmOperator *UNUSED(op))
 
       psys_reset(psys, PSYS_RESET_DEPSGRAPH);
       WM_event_add_notifier(C, NC_OBJECT | ND_PARTICLE | NA_EDITED, ob);
+      BKE_particle_batch_cache_dirty_tag(psys, BKE_PARTICLE_BATCH_DIRTY_ALL);
       DEG_id_tag_update(&ob->id, ID_RECALC_GEOMETRY);
     }
   }



More information about the Bf-blender-cvs mailing list