Fix (unreported) hair particle 'Delete Edit' missing children hair
authorPhilipp Oeser <info@graphics-engineer.com>
Fri, 27 Sep 2019 21:00:42 +0000 (23:00 +0200)
committerPhilipp Oeser <info@graphics-engineer.com>
Thu, 19 Dec 2019 19:59:11 +0000 (20:59 +0100)
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

source/blender/editors/physics/particle_edit.c

index f16a372cb3c321fb580682be6d3e93ff3e084b32..9d3388bd220c580188fe894bc06f33ffabbb3cd8 100644 (file)
@@ -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);
     }
   }