[Bf-blender-cvs] [db4bb49aae6] blender-v2.82-release: Fix warning when initializing the IK chain in the Pose Brush

Pablo Dobarro noreply at git.blender.org
Tue Feb 4 15:27:14 CET 2020


Commit: db4bb49aae68c6e7dc9e26a90c0ad3693fba37fc
Author: Pablo Dobarro
Date:   Mon Feb 3 17:12:28 2020 +0100
Branches: blender-v2.82-release
https://developer.blender.org/rBdb4bb49aae68c6e7dc9e26a90c0ad3693fba37fc

Fix warning when initializing the IK chain in the Pose Brush

The code removed was left there from an early prototype and it was not
doing anything.

Reviewed By: brecht

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

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

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

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

diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index 5f3992852f0..c4c1ddf8ffb 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -4086,9 +4086,7 @@ SculptPoseIKChain *sculpt_pose_ik_chain_init(Sculpt *sd,
                                              const float radius)
 {
 
-  float chain_end[3];
-  float chain_segment_len = len_v3v3(initial_location, chain_end) / br->pose_ik_segments;
-  chain_segment_len = radius * (1.0f + br->pose_offset);
+  const float chain_segment_len = radius * (1.0f + br->pose_offset);
   float next_chain_segment_target[3];
 
   int totvert = sculpt_vertex_count_get(ss);



More information about the Bf-blender-cvs mailing list