diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-06-15 18:22:31 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-06-15 18:23:49 +0300 |
commit | ca2be6912d7dd8b6770a2c00e62d33c7653c21c2 (patch) | |
tree | b1b52f9ead5cdb7683fb65ed68e5f341b12d9416 /source/blender/editors/physics | |
parent | 5ac7068c5fa888fe8502eab42b3639dc35b62785 (diff) |
Hair editing: Use original object's particles for drawing
This allows to rely on brush to update children positions,
and avoid tag of object. Makes it way faster to comb with
children enabled.
Diffstat (limited to 'source/blender/editors/physics')
-rw-r--r-- | source/blender/editors/physics/particle_edit.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/source/blender/editors/physics/particle_edit.c b/source/blender/editors/physics/particle_edit.c index 0ba98d758c7..1068eec5843 100644 --- a/source/blender/editors/physics/particle_edit.c +++ b/source/blender/editors/physics/particle_edit.c @@ -4232,12 +4232,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_PARTICLE_BATCH_DIRTY_ALL); - if (pset->flag & PE_DRAW_PART) { - DEG_id_tag_update(&ob->id, DEG_TAG_COPY_ON_WRITE); - } - else { - DEG_id_tag_update(&ob->id, DEG_TAG_SELECT_UPDATE); - } + DEG_id_tag_update(&ob->id, DEG_TAG_SELECT_UPDATE); } else { DEG_id_tag_update(&ob->id, OB_RECALC_DATA); @@ -4505,12 +4500,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(edit->psys, BKE_PARTICLE_BATCH_DIRTY_ALL); - if (pset->flag & PE_DRAW_PART) { - DEG_id_tag_update(&ob->id, DEG_TAG_COPY_ON_WRITE); - } - else { - DEG_id_tag_update(&ob->id, DEG_TAG_SELECT_UPDATE); - } + DEG_id_tag_update(&ob->id, DEG_TAG_SELECT_UPDATE); } else { DEG_id_tag_update(&ob->id, OB_RECALC_DATA); |