Fix T62551: Limited Hair editing (no grab, scale, rotate)

This is actually re-introduced T59963 which got broken by 6752022310.
Use less obscure recalc flag now.
This commit is contained in:
2019-03-14 15:53:52 +01:00
parent 7bfdf35711
commit bf8a414237
2 changed files with 3 additions and 3 deletions

View File

@@ -4320,7 +4320,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_tag(edit->psys, BKE_PARTICLE_BATCH_DIRTY_ALL);
DEG_id_tag_update(&ob->id, ID_RECALC_SELECT);
DEG_id_tag_update(&ob->id, ID_RECALC_PSYS_REDO);
}
else {
DEG_id_tag_update(&ob->id, ID_RECALC_GEOMETRY);
@@ -4589,7 +4589,7 @@ static int shape_cut_exec(bContext *C, wmOperator *UNUSED(op))
if (edit->psys) {
WM_event_add_notifier(C, NC_OBJECT | ND_PARTICLE | NA_EDITED, ob);
BKE_particle_batch_cache_dirty_tag(edit->psys, BKE_PARTICLE_BATCH_DIRTY_ALL);
DEG_id_tag_update(&ob->id, ID_RECALC_SELECT);
DEG_id_tag_update(&ob->id, ID_RECALC_PSYS_REDO);
}
else {
DEG_id_tag_update(&ob->id, ID_RECALC_GEOMETRY);

View File

@@ -2255,7 +2255,7 @@ void flushTransParticles(TransInfo *t)
}
PE_update_object(t->depsgraph, scene, OBACT(view_layer), 1);
DEG_id_tag_update(&ob->id, ID_RECALC_SHADING);
DEG_id_tag_update(&ob->id, ID_RECALC_PSYS_REDO);
}
}