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
@@ -223,7 +223,7 @@ class mjCModel : public mjCModel_, private mjSpec {
|
||||
std::string get_meshdir() const { return meshdir_; }
|
||||
std::string get_texturedir() const { return texturedir_; }
|
||||
|
||||
mjCDef* Defaults(int i) const { return defaults_[i]; }
|
||||
mjCDef* Default() const { return defaults_[0]; }
|
||||
int NumDefaults() const { return defaults_.size(); }
|
||||
|
||||
const std::vector<std::pair<const mjpPlugin*, int>>& ActivePlugins() const {
|
||||
|
||||
Reference in New Issue
Block a user