Refactor Default class to use pointers instead of indices.
This in order to make it easier to append the default tree to another tree. PiperOrigin-RevId: 649812975 Change-Id: I2915ac7e37957e45eadc24d6caaf7beea236bf29
This commit is contained in:
committed by
Copybara-Service
parent
9d0812911c
commit
f57dc90669
@@ -1635,8 +1635,8 @@ class mjCDef : public mjsElement {
|
||||
// identifiers
|
||||
std::string name; // class name
|
||||
int id; // id of this default
|
||||
int parentid; // id of parent class
|
||||
std::vector<int> childid; // ids of child classes
|
||||
mjCDef* parent; // id of parent class
|
||||
std::vector<mjCDef*> child; // child classes
|
||||
|
||||
mjsDefault spec;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user