Rephrase condition for default limited definition so it's more intuitive
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user