From ca09625dccf4d5ce20b9a9ccda572a0170ebabb9 Mon Sep 17 00:00:00 2001 From: Pablo Dobarro Date: Tue, 2 Jun 2020 02:31:15 +0200 Subject: [PATCH] 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 --- source/blender/editors/sculpt_paint/sculpt_pose.c | 3 --- 1 file changed, 3 deletions(-) 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;