Do not namespace the body that contains the frame during mjs_attachFrame.

PiperOrigin-RevId: 730912252
Change-Id: I026993af648766c09d569709d268430207d83169
This commit is contained in:
Alessio Quaglino
2025-02-25 09:15:45 -08:00
committed by Copybara-Service
parent fbe0990b17
commit ed7adf3d17
2 changed files with 5 additions and 0 deletions
+2
View File
@@ -917,8 +917,10 @@ mjCBody& mjCBody::operator+=(const mjCFrame& other) {
CopyList(lights, subtree->lights, fmap, &other);
if (!model->deepcopy_) {
std::string name = subtree->name;
subtree->SetModel(model);
subtree->NameSpace(other_model);
subtree->name = name;
}
int nbodies = (int)subtree->bodies.size();