Cleanup: use braces (follow own style guide)

This commit is contained in:
Campbell Barton
2025-06-11 09:05:26 +00:00
parent afd778ec01
commit 07121d44ae
31 changed files with 172 additions and 106 deletions

View File

@@ -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);

View File

@@ -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;