[Bf-blender-cvs] [ca09625dccf] master: Cleanup: Remove unused grab delta in Pose Brush

Pablo Dobarro noreply at git.blender.org
Tue Jun 2 18:38:38 CEST 2020


Commit: ca09625dccf4d5ce20b9a9ccda572a0170ebabb9
Author: Pablo Dobarro
Date:   Tue Jun 2 02:31:15 2020 +0200
Branches: master
https://developer.blender.org/rBca09625dccf4d5ce20b9a9ccda572a0170ebabb9

Cleanup: Remove unused grab delta in Pose Brush

The grab delta is not used in do_pose_brush_task_cb_ex, so there is no
reason to add it to SculptThreadedTaskData

Reviewed By: sergey

Differential Revision: https://developer.blender.org/D7901

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

M	source/blender/editors/sculpt_paint/sculpt_pose.c

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

diff --git a/source/blender/editors/sculpt_paint/sculpt_pose.c b/source/blender/editors/sculpt_paint/sculpt_pose.c
index 7c9caeb4340..5e61677b28f 100644
--- a/source/blender/editors/sculpt_paint/sculpt_pose.c
+++ b/source/blender/editors/sculpt_paint/sculpt_pose.c
@@ -1031,7 +1031,6 @@ void SCULPT_do_pose_brush(Sculpt *sd, Object *ob, PBVHNode **nodes, int totnode)
 {
   SculptSession *ss = ob->sculpt;
   Brush *brush = BKE_paint_brush(&sd->paint);
-  float grab_delta[3];
   const ePaintSymmetryFlags symm = sd->paint.symmetry_flags & PAINT_SYMM_AXIS_ALL;
 
   /* The pose brush applies all enabled symmetry axis in a single iteration, so the rest can be
@@ -1041,7 +1040,6 @@ void SCULPT_do_pose_brush(Sculpt *sd, Object *ob, PBVHNode **nodes, int totnode)
   }
 
   SculptPoseIKChain *ik_chain = ss->cache->pose_ik_chain;
-  copy_v3_v3(grab_delta, ss->cache->grab_delta);
 
   switch (brush->pose_deform_type) {
     case BRUSH_POSE_DEFORM_ROTATE_TWIST:
@@ -1095,7 +1093,6 @@ void SCULPT_do_pose_brush(Sculpt *sd, Object *ob, PBVHNode **nodes, int totnode)
       .ob = ob,
       .brush = brush,
       .nodes = nodes,
-      .grab_delta = grab_delta,
   };
 
   TaskParallelSettings settings;



More information about the Bf-blender-cvs mailing list