Add ctrl to attached keyframes.
PiperOrigin-RevId: 662878508 Change-Id: Ie273fae0220c8b257766cbbd90a880d44b901725
This commit is contained in:
committed by
Copybara-Service
parent
afd7c73f44
commit
7be4df7e03
@@ -96,12 +96,12 @@ void mj_recompile(mjSpec* s, const mjVFS* vfs, mjModel* m, mjData* d) {
|
||||
mjtNum time = 0;
|
||||
if (d) {
|
||||
time = d->time;
|
||||
modelC->SaveState(d->qpos, d->qvel, d->act);
|
||||
modelC->SaveState(d->qpos, d->qvel, d->act, d->ctrl);
|
||||
}
|
||||
modelC->Compile(vfs, &m);
|
||||
if (d) {
|
||||
modelC->MakeData(m, &d);
|
||||
modelC->RestoreState(m->qpos0, d->qpos, d->qvel, d->act);
|
||||
modelC->RestoreState(m->qpos0, d->qpos, d->qvel, d->act, d->ctrl);
|
||||
d->time = time;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user