diff --git a/src/RigidBody/Joints.cpp b/src/RigidBody/Joints.cpp index 847532f0..cc573943 100644 --- a/src/RigidBody/Joints.cpp +++ b/src/RigidBody/Joints.cpp @@ -157,8 +157,7 @@ size_t rigidbody::Joints::AddSegment( RigidBodyDynamics::Math::SpatialTransform(referenceFrame.rot().transpose(), referenceFrame.trans()) ); - if (this->GetBodyId(parentName.c_str()) == - std::numeric_limits::max()) { + if (this->GetBodyId(parentName.c_str()) == std::numeric_limits::max()) { *m_nbRoot += tp.nbDof(); // If the segment name is "Root", add the number of DoF of root }