diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-03-20 14:03:15 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-03-20 14:03:15 +0300 |
commit | 454b90483dc72608e9bf7fc205b1ca849622f8d8 (patch) | |
tree | ffb700c3597e409fbc90594d2a486ae55e072eb8 /source/blender/editors/physics | |
parent | 1d5c85ffd9f52f94b7262f8adecad8fa71339ab7 (diff) |
Fix missing refresh when subdividing hair strand
This is a part of T62730.i
Diffstat (limited to 'source/blender/editors/physics')
-rw-r--r-- | source/blender/editors/physics/particle_edit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/physics/particle_edit.c b/source/blender/editors/physics/particle_edit.c index e4f17ca68f0..077573742e6 100644 --- a/source/blender/editors/physics/particle_edit.c +++ b/source/blender/editors/physics/particle_edit.c @@ -2773,7 +2773,9 @@ static int subdivide_exec(bContext *C, wmOperator *UNUSED(op)) foreach_point(&data, subdivide_particle); recalc_lengths(data.edit); + PE_update_selection(data.depsgraph, data.scene, data.ob, 1); PE_update_object(data.depsgraph, data.scene, data.ob, 1); + DEG_id_tag_update(&data.ob->id, ID_RECALC_SELECT); WM_event_add_notifier(C, NC_OBJECT | ND_PARTICLE | NA_EDITED, data.ob); return OPERATOR_FINISHED; |