Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2019-03-20 14:03:15 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2019-03-20 14:03:15 +0300
commit454b90483dc72608e9bf7fc205b1ca849622f8d8 (patch)
treeffb700c3597e409fbc90594d2a486ae55e072eb8 /source/blender/editors/physics
parent1d5c85ffd9f52f94b7262f8adecad8fa71339ab7 (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.c2
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;