Avoid duplicated code in mjCModel by adding ResetTreeLists().

PiperOrigin-RevId: 653575505
Change-Id: I61ee1462deae2a371cf6f36ca1cf3dbbd88d174c
This commit is contained in:
Alessio Quaglino
2024-07-18 05:07:13 -07:00
committed by Copybara-Service
parent 67922f41b9
commit 231d9632cd
2 changed files with 22 additions and 36 deletions
+3
View File
@@ -353,6 +353,9 @@ class mjCModel : public mjCModel_, private mjSpec {
// populate objects ids
void ProcessLists(bool checkrepeat = true);
// reset lists of kinematic tree
void ResetTreeLists();
mjListKeyMap ids; // map from object names to ids
mjCError errInfo; // last error info
bool plugin_owner; // this class allocated the plugins