From f9beb1bef1787166aafd35d326244f3e3f83487e Mon Sep 17 00:00:00 2001 From: Philipp Oeser Date: Wed, 18 Sep 2019 15:19:15 +0200 Subject: Fix (unreported) missing viewport update deleting a particle If children hairs were displayed in particle editmode, these would not update when a particle was deleted. Reviewers: sergey Differential Revision: https://developer.blender.org/D5840 --- source/blender/editors/physics/particle_edit.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/blender/editors/physics/particle_edit.c b/source/blender/editors/physics/particle_edit.c index 2047ecb9e0a..59973d9ee8a 100644 --- a/source/blender/editors/physics/particle_edit.c +++ b/source/blender/editors/physics/particle_edit.c @@ -3315,6 +3315,7 @@ static int delete_exec(bContext *C, wmOperator *op) } DEG_id_tag_update(&data.ob->id, ID_RECALC_GEOMETRY); + BKE_particle_batch_cache_dirty_tag(data.edit->psys, BKE_PARTICLE_BATCH_DIRTY_ALL); WM_event_add_notifier(C, NC_OBJECT | ND_PARTICLE | NA_EDITED, data.ob); return OPERATOR_FINISHED; -- cgit v1.2.3