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
This commit is contained in:
Philipp Oeser 2019-09-18 15:19:15 +02:00
parent a9a8eedd16
commit f9beb1bef1
1 changed files with 1 additions and 0 deletions

View File

@ -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;