Reset tree indices before recompiling.
Fixes #1822. PiperOrigin-RevId: 654762203 Change-Id: I7f656f7dad376d4899229a8741315c8f821bfa56
This commit is contained in:
committed by
Copybara-Service
parent
f62792594f
commit
e79efa60d6
@@ -3206,6 +3206,7 @@ mjModel* mjCModel::Compile(const mjVFS* vfs, mjModel** m) {
|
||||
bodies_[i]->subtreedofs = 0;
|
||||
}
|
||||
mjCBody* world = bodies_[0];
|
||||
ResetTreeLists();
|
||||
Clear();
|
||||
bodies_.push_back(world);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user