angular-only hinge updated
[blender.git] / extern / bullet2 / src / BulletDynamics / ConstraintSolver / btHingeConstraint.cpp
index 7a3e9140c8da2e5c2d71f494649219f6bc2a85f8..7b2a9ba624447b6e9432ca0dd973d5868ae43df1 100644 (file)
@@ -200,6 +200,7 @@ void        btHingeConstraint::solveConstraint(btScalar     timeStep)
        btScalar damping = 1.f;
 
 //linear part
+       if (!m_angularOnly)
        {
                for (int i=0;i<3;i++)
                {               
@@ -226,7 +227,7 @@ void        btHingeConstraint::solveConstraint(btScalar     timeStep)
                }
        }
 
-       if (!m_angularOnly)
+       
        {
                ///solve angular part