Commit: 454b90483dc72608e9bf7fc205b1ca849622f8d8
Author: Sergey Sharybin
Date:   Wed Mar 20 12:03:15 2019 +0100
Branches: master
https://developer.blender.org/rB454b90483dc72608e9bf7fc205b1ca849622f8d8

Fix missing refresh when subdividing hair strand

This is a part of T62730.i

===================================================================

M       source/blender/editors/physics/particle_edit.c

===================================================================

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;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to