Particle edit: Avoid depsgraph tag from draw code

Some of the function was intended to be used form drawing as well,
for until that is changed in design we can not use dependency graph
tags form it.
This commit is contained in:
2018-05-14 10:15:54 +02:00
parent 783bb4e1cd
commit 258c5f2c0f

View File

@@ -4002,6 +4002,7 @@ static void brush_edit_apply(bContext *C, wmOperator *op, PointerRNA *itemptr)
if (edit->psys) {
WM_event_add_notifier(C, NC_OBJECT|ND_PARTICLE|NA_EDITED, ob);
BKE_particle_batch_cache_dirty(edit->psys, BKE_MESH_BATCH_DIRTY_ALL);
}
else {
DEG_id_tag_update(&ob->id, OB_RECALC_DATA);