Add AddFreeJoint and remove isfree from AddJoint.
PiperOrigin-RevId: 604597442 Change-Id: I2fe03cf0f9a59b425080cc5cc12b236fea9c020d
This commit is contained in:
committed by
Copybara-Service
parent
3b2dd06c54
commit
01439f28b3
@@ -3045,7 +3045,7 @@ void mjXReader::Body(XMLElement* section, mjCBody* pbody, mjCFrame* frame) {
|
||||
}
|
||||
|
||||
// create free joint without defaults
|
||||
mjCJoint* pjoint = pbody->AddJoint(NULL, true);
|
||||
mjCJoint* pjoint = pbody->AddFreeJoint();
|
||||
pjoint->SetFrame(frame);
|
||||
|
||||
// save defaults after creation, to make sure writing is ok
|
||||
|
||||
Reference in New Issue
Block a user