Do not self-attach custom tags.

Fixes #2162.

PiperOrigin-RevId: 688518165
Change-Id: Iad90e159514c96635676a8dd53fca41e3998d8fc
This commit is contained in:
Alessio Quaglino
2024-10-22 06:03:06 -07:00
committed by Copybara-Service
parent 1802d9b1a7
commit 9e1aa37b55
2 changed files with 22 additions and 2 deletions
+2 -2
View File
@@ -386,6 +386,8 @@ mjCModel& mjCModel::operator+=(const mjCModel& other) {
for (const auto& key : other.key_pending_) {
key_pending_.push_back(key);
}
CopyList(numerics_, other.numerics_);
CopyList(texts_, other.texts_);
}
CopyList(flexes_, other.flexes_);
CopyList(pairs_, other.pairs_);
@@ -394,8 +396,6 @@ mjCModel& mjCModel::operator+=(const mjCModel& other) {
CopyList(equalities_, other.equalities_);
CopyList(actuators_, other.actuators_);
CopyList(sensors_, other.sensors_);
CopyList(numerics_, other.numerics_);
CopyList(texts_, other.texts_);
CopyList(tuples_, other.tuples_);
// create new plugins and map them