use multibody by default when using FILE/Open URDF (instead of maximal coordinate rigid body+typed constraints)

This commit is contained in:
Erwin Coumans
2015-08-06 00:35:03 -07:00
parent 6d8ad72d68
commit dcab0e2b1f
5 changed files with 15 additions and 17 deletions

View File

@@ -493,7 +493,10 @@ int stbi_write_png(char const *filename, int x, int y, int comp, const void *dat
unsigned char *png = stbi_write_png_to_mem((unsigned char *) data, stride_bytes, x, y, comp, &len);
if (!png) return 0;
f = fopen(filename, "wb");
if (!f) { free(png); return 0; }
if (!f) {
free(png);
return 0;
}
fwrite(png, 1, len, f);
fclose(f);
free(png);