From 3a00450d00579034e5bfd8b4d042ee3ea07e6966 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A1lint=20Hodossy?= Date: Thu, 11 Jan 2024 16:20:13 +0000 Subject: [PATCH] Rephrase condition for default limited definition so it's more intuitive --- unity/Runtime/Components/Joints/MjJointSettings.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unity/Runtime/Components/Joints/MjJointSettings.cs b/unity/Runtime/Components/Joints/MjJointSettings.cs index 1b9e87e9..c45a6c1c 100644 --- a/unity/Runtime/Components/Joints/MjJointSettings.cs +++ b/unity/Runtime/Components/Joints/MjJointSettings.cs @@ -167,7 +167,7 @@ namespace Mujoco { bool defaultLimited = false; if (mjcf.OwnerDocument.GetElementsByTagName("compiler")[0] is not XmlElement - compilerElement || !compilerElement.GetBoolAttribute("autolimits").Equals("false")) { + compilerElement || compilerElement.GetBoolAttribute("autolimits", true)) { defaultLimited = mjcf.HasAttribute("range"); }