Add more useful dump info for shapes
This commit is contained in:
@@ -104,7 +104,17 @@ void Shape::dumpMe(FILE *fp)
|
|||||||
fprintf(fp, "},\n");
|
fprintf(fp, "},\n");
|
||||||
}
|
}
|
||||||
fprintf(fp, "\"DropShadow\": %d,\n", this->dropShadow);
|
fprintf(fp, "\"DropShadow\": %d,\n", this->dropShadow);
|
||||||
fprintf(fp, "\"BoundingBox\": {\n");
|
fprintf(fp, "\"Locked\": %d,\n", this->locked);
|
||||||
this->getBounds().dumpMe(fp);
|
fprintf(fp, "\"MaterialSet\": %d,\n", this->materialSet);
|
||||||
fprintf(fp, "},\n");
|
if (this->haveFiniteBounds())
|
||||||
|
{
|
||||||
|
fprintf(fp, "\"BoundingBox\": {\n");
|
||||||
|
this->getBounds().dumpMe(fp);
|
||||||
|
fprintf(fp, "},\n");
|
||||||
|
}
|
||||||
|
fprintf(fp, "\"id\": %p,\n", this);
|
||||||
|
if (this->parent)
|
||||||
|
{
|
||||||
|
fprintf(fp, "\"parentId\": %p,\n", this->parent);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user