Skip to content

Commit 5a27a85

Browse files
authored
fix paths
1 parent 0fb24a3 commit 5a27a85

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/addons/addons/custom-block-shape/userscript.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ export default async function ({ addon, console }) {
117117
}
118118
shape.emptyInputWidth = shape.ogEmptySize * multiplier;
119119
shape.emptyInputPath = scalePathXY(shape.ogEmptyPath, multiplier, multiplier);
120+
if (shape.emptyInputPath[0] !== "M" && shape.emptyInputPath[0] !== "m") {
121+
shape.emptyInputPath = "M" + shape.emptyInputPath;
122+
}
120123
});
121124

122125
BlockSvg.INPUT_SHAPE_HEXAGONAL_WIDTH = 12 * GRID_UNIT * multiplier;

0 commit comments

Comments
 (0)