Add control values to keyframes.
- Add basic test for keyframes. - Add missing documentation for keyframe mocap positions and quaternions. PiperOrigin-RevId: 459021649 Change-Id: I91cf7ecbddc6262e8c72a868eeb82d627f389fb3
This commit is contained in:
committed by
Copybara-Service
parent
5ba880506c
commit
09a5efc09e
@@ -1662,6 +1662,15 @@ void mjXWriter::Keyframe(XMLElement* root) {
|
||||
}
|
||||
}
|
||||
|
||||
// check ctrl and write
|
||||
for (int j=0; j<model->nu; j++) {
|
||||
if (pk->ctrl[j]!=0) {
|
||||
WriteAttr(elem, "ctrl", model->nu, pk->ctrl.data());
|
||||
change = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// remove elem if empty
|
||||
if (!change) {
|
||||
section->DeleteChild(elem);
|
||||
|
||||
Reference in New Issue
Block a user