Cleanup: use braces (follow own style guide)
This commit is contained in:
@@ -194,8 +194,9 @@ void IK_QCenterOfMassTask::ComputeJacobian(IK_QJacobian &jacobian)
|
||||
m_distance = d_pos.norm();
|
||||
|
||||
#if 0
|
||||
if (m_distance > m_clamp_length)
|
||||
if (m_distance > m_clamp_length) {
|
||||
d_pos = (m_clamp_length / m_distance) * d_pos;
|
||||
}
|
||||
#endif
|
||||
|
||||
jacobian.SetBetas(m_id, m_size, m_weight * d_pos);
|
||||
|
||||
@@ -407,8 +407,9 @@ static void IK_SolverAddCenterOfMass(IK_Solver *solver,
|
||||
float goal[3],
|
||||
float weight)
|
||||
{
|
||||
if (solver == nullptr || root == nullptr)
|
||||
if (solver == nullptr || root == nullptr) {
|
||||
return;
|
||||
}
|
||||
|
||||
IK_QSolver *qsolver = (IK_QSolver *)solver;
|
||||
IK_QSegment *qroot = (IK_QSegment *)root;
|
||||
|
||||
Reference in New Issue
Block a user