Trying to make the dump a bit more usefull and slightly less cluttered

This commit is contained in:
Godzil
2020-03-09 17:41:11 +00:00
parent 15a861802a
commit 4e241a1871
6 changed files with 83 additions and 26 deletions

View File

@@ -91,9 +91,12 @@ BoundingBox Shape::getBounds()
void Shape::dumpMe(FILE *fp)
{
fprintf(fp, "\"Material\": {\n");
this->material.dumpMe(fp);
fprintf(fp, "},\n");
if (this->materialSet)
{
fprintf(fp, "\"Material\": {\n");
this->material.dumpMe(fp);
fprintf(fp, "},\n");
}
fprintf(fp, "\"DropShadow\": %d,\n", this->dropShadow);
fprintf(fp, "\"BoundingBox\": {\n");
this->getBounds().dumpMe(fp);