Do not self-attach custom tags.
Fixes #2162. PiperOrigin-RevId: 688518165 Change-Id: Iad90e159514c96635676a8dd53fca41e3998d8fc
This commit is contained in:
committed by
Copybara-Service
parent
1802d9b1a7
commit
9e1aa37b55
@@ -631,6 +631,10 @@ static constexpr char xml_child[] = R"(
|
||||
</default>
|
||||
</default>
|
||||
|
||||
<custom>
|
||||
<numeric data="10" name="constant"/>
|
||||
</custom>
|
||||
|
||||
<asset>
|
||||
<texture name="texture" type="2d" builtin="checker" width="32" height="32"/>
|
||||
<material name="material" texture="texture" texrepeat="1 1" texuniform="true"/>
|
||||
@@ -694,6 +698,10 @@ TEST_F(MujocoTest, AttachSame) {
|
||||
</default>
|
||||
</default>
|
||||
|
||||
<custom>
|
||||
<numeric data="10" name="constant"/>
|
||||
</custom>
|
||||
|
||||
<asset>
|
||||
<texture name="texture" type="2d" builtin="checker" width="32" height="32"/>
|
||||
<material name="material" texture="texture" texrepeat="1 1" texuniform="true"/>
|
||||
@@ -833,6 +841,10 @@ TEST_F(MujocoTest, AttachDifferent) {
|
||||
</default>
|
||||
</default>
|
||||
|
||||
<custom>
|
||||
<numeric data="10" name="attached-constant-1"/>
|
||||
</custom>
|
||||
|
||||
<asset>
|
||||
<texture name="attached-texture-1" type="2d" builtin="checker" width="32" height="32"/>
|
||||
<material name="attached-material-1" texture="attached-texture-1" texrepeat="1 1" texuniform="true"/>
|
||||
@@ -957,6 +969,10 @@ TEST_F(MujocoTest, AttachFrame) {
|
||||
</default>
|
||||
</default>
|
||||
|
||||
<custom>
|
||||
<numeric data="10" name="attached-constant-1"/>
|
||||
</custom>
|
||||
|
||||
<asset>
|
||||
<texture name="attached-texture-1" type="2d" builtin="checker" width="32" height="32"/>
|
||||
<material name="attached-material-1" texture="attached-texture-1" texrepeat="1 1" texuniform="true"/>
|
||||
@@ -1063,6 +1079,10 @@ void TestDetachBody(bool compile) {
|
||||
<material name="material" texture="texture" texrepeat="1 1" texuniform="true"/>
|
||||
</asset>
|
||||
|
||||
<custom>
|
||||
<numeric data="10" name="constant"/>
|
||||
</custom>
|
||||
|
||||
<worldbody>
|
||||
<frame name="pframe">
|
||||
<frame name="cframe">
|
||||
|
||||
Reference in New Issue
Block a user