Skip to content

Commit 66bd49a

Browse files
DeepMindcopybara-github
authored andcommitted
Add ability to specify a material assignment to a mesh asset.
This extends both the spec and the XML definition to allow specification of a material name on a mesh. This material acts as a fallback in the case that the referencing geom element does not specify a material of it's own. PiperOrigin-RevId: 798232378 Change-Id: Ibac3264b79b9f2192910853ca8caf3ce49fb738e
1 parent 5ba8bd7 commit 66bd49a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dm_control/mjcf/schema.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -960,6 +960,7 @@
960960
<attribute name="inertia" type="keyword" valid_values="legacy convex exact shell"/>
961961
<attribute name="builtin" type="keyword" valid_values="wedge rect"/>
962962
<attribute name="parameters" type="array" array_type="float"/>
963+
<attribute name="material" type="reference"/>
963964
</attributes>
964965
<children>
965966
<element name="plugin" repeated="true" namespace="mesh">

0 commit comments

Comments
 (0)