Update MjXmlModifiers.cs
This commit is contained in:
@@ -53,7 +53,7 @@ namespace Mujoco {
|
|||||||
CopyAttributesOverwriteExisting(defaultAncestor, aggregateDefaults);
|
CopyAttributesOverwriteExisting(defaultAncestor, aggregateDefaults);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Add the merged attribiutes to the node, without overwriting the existing values.
|
// Add the merged attributes to the node, without overwriting the existing values.
|
||||||
CopyAttributes(aggregateDefaults, element);
|
CopyAttributes(aggregateDefaults, element);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -83,7 +83,7 @@ namespace Mujoco {
|
|||||||
while (element != null) {
|
while (element != null) {
|
||||||
var className = element.GetStringAttribute("childclass", string.Empty);
|
var className = element.GetStringAttribute("childclass", string.Empty);
|
||||||
if (element == modifiedElement) {
|
if (element == modifiedElement) {
|
||||||
// "class" attribute does not partcipate in building of the inheritance tree, and so we're
|
// "class" attribute does not participate in building of the inheritance tree, and so we're
|
||||||
// only considering it if it's defined on the very element we're trying to modify.
|
// only considering it if it's defined on the very element we're trying to modify.
|
||||||
className = element.GetStringAttribute("class", className);
|
className = element.GetStringAttribute("class", className);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user