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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user