Make constraint island discovery on by default.
Also fix latent bug in mjData serialization. PiperOrigin-RevId: 799505349 Change-Id: I299e7cc8133fa2ec0b339a7ff3d02543e06778b1
This commit is contained in:
committed by
Copybara-Service
parent
4cf5c37211
commit
ec94bb49aa
@@ -647,7 +647,7 @@ void UpdateInfoText(mj::Simulate* sim, const mjModel* m, const mjData* d,
|
||||
}
|
||||
|
||||
// add islands if enabled
|
||||
if (mjENABLED(mjENBL_ISLAND)) {
|
||||
if (!mjDISABLED(mjDSBL_ISLAND) && d->nisland > 0) {
|
||||
mju::sprintf_arr(tmp, "\n%d", d->nisland);
|
||||
mju::strcat_arr(content, tmp);
|
||||
mju::strcat_arr(title, "\nIslands");
|
||||
|
||||
Reference in New Issue
Block a user