IK
[blender.git] / intern / iksolver / intern / IK_Solver.cpp
index b2d75d783c6016be5383e03ad7bac9ee6993ac34..140c35c8c46c28e6ceb0bdeb31f8e8d9132ae081 100644 (file)
@@ -41,7 +41,7 @@ using namespace std;
 
 class IK_QSolver {
 public:
-       IK_QSolver() {};
+       IK_QSolver() : root(NULL) {};
 
        IK_QJacobianSolver solver;
        IK_QSegment *root;
@@ -197,13 +197,12 @@ void IK_SetStiffness(IK_Segment *seg, IK_SegmentAxis axis, float stiffness)
        if (stiffness < 0.0)
                return;
        
-       if (stiffness > 0.99)
-               stiffness = 0.99;
+       if (stiffness > 0.999)
+               stiffness = 0.999;
 
        IK_QSegment *qseg = (IK_QSegment*)seg;
        MT_Scalar weight = 1.0-stiffness;
 
-
        if (axis >= IK_TRANS_X) {
                if(!qseg->Translational())
                        if(qseg->Composite() && qseg->Composite()->Translational())