diff --git a/src/ui.tsx b/src/ui.tsx index 23c06b5..07da7b2 100644 --- a/src/ui.tsx +++ b/src/ui.tsx @@ -103,21 +103,14 @@ export default class PenpotExporter extends React.Component fill.type === "IMAGE"); + if (imageFill){ + this.createPenpotImage(file, node, baseX, baseY, this.state.images[imageFill.imageHash]); + } else { + this.createPenpotRectangle(file, node, baseX, baseY); + } } else if (node.type == "ELLIPSE"){ this.createPenpotCircle(file, node, baseX, baseY);