Bugfix; the IK solver would crash if there were 0 DOF's in the chain.

This commit is contained in:
Brecht Van Lommel
2005-08-27 23:04:37 +00:00
parent adc1d7137a
commit fa443a5f01

View File

@@ -57,6 +57,9 @@ bool IK_QJacobianSolver::Setup(IK_QSegment *root, std::list<IK_QTask*>& tasks)
num_dof += (*seg)->NumberOfDoF();
}
if (num_dof == 0)
return false;
// compute task id's and assing weights to task
int primary_size = 0, primary = 0;
int secondary_size = 0, secondary = 0;