Apply tendon defaults on fixed and spatial tendons

This commit is contained in:
Benjamin Nauck
2023-02-13 12:02:29 +01:00
parent 7ed632cb9e
commit 8599d80b4d
+1
View File
@@ -167,6 +167,7 @@ public class MjcfImporter {
if (tendonNode != null) {
var tendonsParentObject = CreateGameObjectInParent("tendons", rootObject);
foreach (var child in tendonNode.OfType<XmlElement>()) {
_modifiers.ApplyModifiersToElement(child, elementName: "tendon");
if (child.Name == "fixed") {
CreateGameObjectWithUniqueName<MjFixedTendon>(tendonsParentObject, child);
} else if (child.Name == "spatial") {