Fix set but unused variable in IK solver
This commit is contained in:
committed by
Sergey Sharybin
parent
8ed543c6f2
commit
4f7dc1e4b6
@@ -74,7 +74,7 @@ bool IK_QJacobianSolver::Setup(IK_QSegment *root, std::list<IK_QTask *> &tasks)
|
||||
return false;
|
||||
|
||||
// compute task ids and assign weights to task
|
||||
int primary_size = 0, primary = 0;
|
||||
int primary_size = 0;
|
||||
int secondary_size = 0, secondary = 0;
|
||||
double primary_weight = 0.0, secondary_weight = 0.0;
|
||||
std::list<IK_QTask *>::iterator task;
|
||||
@@ -86,7 +86,6 @@ bool IK_QJacobianSolver::Setup(IK_QSegment *root, std::list<IK_QTask *> &tasks)
|
||||
qtask->SetId(primary_size);
|
||||
primary_size += qtask->Size();
|
||||
primary_weight += qtask->Weight();
|
||||
primary++;
|
||||
}
|
||||
else {
|
||||
qtask->SetId(secondary_size);
|
||||
|
||||
Reference in New Issue
Block a user