Clean-up test files.
Also, don't add a Global Settings component at import if the xml doesn't have any global settings (option/size/custom). PiperOrigin-RevId: 495950899 Change-Id: I6599e8ea3f3a82729fc5c974fd7ced8eb93b277e
This commit is contained in:
committed by
Copybara-Service
parent
69c74f850e
commit
6a58fd1522
@@ -40,6 +40,9 @@ namespace Mujoco {
|
||||
if (Body1 == null || Body2 == null) {
|
||||
throw new NullReferenceException($"Both bodies in connect {name} are required.");
|
||||
}
|
||||
if (Anchor == null) {
|
||||
throw new NullReferenceException($"Anchor in connect {name} is required.");
|
||||
}
|
||||
mjcf.SetAttribute("body1", Body1.MujocoName);
|
||||
mjcf.SetAttribute("body2", Body2.MujocoName);
|
||||
mjcf.SetAttribute("anchor",
|
||||
|
||||
Reference in New Issue
Block a user