[Bf-blender-cvs] [bf8a414237f] master: Fix T62551: Limited Hair editing (no grab, scale, rotate)

Sergey Sharybin noreply at git.blender.org
Thu Mar 14 15:56:43 CET 2019


Commit: bf8a414237f90f8a014b942f8dcaac3a679bda6a
Author: Sergey Sharybin
Date:   Thu Mar 14 15:53:52 2019 +0100
Branches: master
https://developer.blender.org/rBbf8a414237f90f8a014b942f8dcaac3a679bda6a

Fix T62551: Limited Hair editing (no grab, scale, rotate)

This is actually re-introduced T59963 which got broken by 6752022310b.
Use less obscure recalc flag now.

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

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

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

diff --git a/source/blender/editors/physics/particle_edit.c b/source/blender/editors/physics/particle_edit.c
index b2f314a66ec..7a786f352bc 100644
--- a/source/blender/editors/physics/particle_edit.c
+++ b/source/blender/editors/physics/particle_edit.c
@@ -4320,7 +4320,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_tag(edit->psys, BKE_PARTICLE_BATCH_DIRTY_ALL);
-			DEG_id_tag_update(&ob->id, ID_RECALC_SELECT);
+			DEG_id_tag_update(&ob->id, ID_RECALC_PSYS_REDO);
 		}
 		else {
 			DEG_id_tag_update(&ob->id, ID_RECALC_GEOMETRY);
@@ -4589,7 +4589,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_tag(edit->psys, BKE_PARTICLE_BATCH_DIRTY_ALL);
-			DEG_id_tag_update(&ob->id, ID_RECALC_SELECT);
+			DEG_id_tag_update(&ob->id, ID_RECALC_PSYS_REDO);
 		}
 		else {
 			DEG_id_tag_update(&ob->id, ID_RECALC_GEOMETRY);
diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c
index e79f510d308..75d1aa9343d 100644
--- a/source/blender/editors/transform/transform_conversions.c
+++ b/source/blender/editors/transform/transform_conversions.c
@@ -2255,7 +2255,7 @@ void flushTransParticles(TransInfo *t)
 		}
 
 		PE_update_object(t->depsgraph, scene, OBACT(view_layer), 1);
-		DEG_id_tag_update(&ob->id, ID_RECALC_SHADING);
+		DEG_id_tag_update(&ob->id, ID_RECALC_PSYS_REDO);
 	}
 }



More information about the Bf-blender-cvs mailing list