[Bf-blender-cvs] [454b90483dc] master: Fix missing refresh when subdividing hair strand

Sergey Sharybin noreply at git.blender.org
Wed Mar 20 12:03:38 CET 2019


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;



More information about the Bf-blender-cvs mailing list