Fix for commit 41227 (Some opening comment tags (/*) were lost!).
[blender.git] / intern / itasc / ControlledObject.cpp
index 4055aad776816c7910b909808c42fd8b174e8475..773370b6d2e1cbd7f1a70ee7b4ff430a246cde30 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;
        }