From 8599d80b4dd2438d2d243d4cae0fd30a72360f51 Mon Sep 17 00:00:00 2001 From: Benjamin Nauck Date: Mon, 13 Feb 2023 12:02:29 +0100 Subject: [PATCH] Apply tendon defaults on fixed and spatial tendons --- unity/Runtime/Importer/MjcfImporter.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/unity/Runtime/Importer/MjcfImporter.cs b/unity/Runtime/Importer/MjcfImporter.cs index fe83df5f..b9738c07 100644 --- a/unity/Runtime/Importer/MjcfImporter.cs +++ b/unity/Runtime/Importer/MjcfImporter.cs @@ -167,6 +167,7 @@ public class MjcfImporter { if (tendonNode != null) { var tendonsParentObject = CreateGameObjectInParent("tendons", rootObject); foreach (var child in tendonNode.OfType()) { + _modifiers.ApplyModifiersToElement(child, elementName: "tendon"); if (child.Name == "fixed") { CreateGameObjectWithUniqueName(tendonsParentObject, child); } else if (child.Name == "spatial") {