svn merge ^/trunk/blender -r41230:41266
[blender.git] / intern / itasc / ControlledObject.cpp
index 4055aad..773370b 100644 (file)
@@ -54,7 +54,7 @@ const e_matrix& ControlledObject::getJq(unsigned int ee) const
 
 double ControlledObject::getMaxTimestep(double& timestep)
 {
-       e_scalar maxQdot = m_qdot.array().abs().maxCoeff();
+       e_scalar maxQdot = m_qdot.cwise().abs().maxCoeff();
        if (timestep*maxQdot > m_maxDeltaQ) {
                timestep = m_maxDeltaQ/maxQdot;
        }