Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Dobarro <pablodp606@gmail.com>2020-02-03 19:12:28 +0300
committerPablo Dobarro <pablodp606@gmail.com>2020-02-04 17:32:00 +0300
commitdb4bb49aae68c6e7dc9e26a90c0ad3693fba37fc (patch)
treeeca788305c1dfa09caae9870eab1a828beb4913a
parent842e71a1ef9fd91e1680f513ec5860cfc8707f4c (diff)
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
-rw-r--r--source/blender/editors/sculpt_paint/sculpt.c4
1 files changed, 1 insertions, 3 deletions
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);