Rephrase condition for default limited definition so it's more intuitive

This commit is contained in:
Bálint Hodossy
2024-01-11 16:20:13 +00:00
parent 56b30d9d15
commit 3a00450d00
@@ -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");
}