minor style corrections

This commit is contained in:
Vyankatesh Ashtekar
2024-02-25 21:17:44 +05:30
parent fad7ed30d2
commit fe9b057dfe
+2 -4
View File
@@ -800,11 +800,9 @@ void mj_subtreeAngMomMat(const mjModel *m, mjData *d, mjtNum *agm, int body)
// save the location of the subtree COM
mju_copy3(r_com, d->subtree_com+3*body);
for (int b=body; b < m->nbody; b++)
{
for (int b=body; b < m->nbody; b++) {
// end of body subtree, break from the loop
if (b > body && m->body_parentid[b] < body)
{
if (b > body && m->body_parentid[b] < body) {
break;
}