1
0
Fork 0

chore(plugin-bartack): Using new attributes.setIfUnset() method

This commit is contained in:
Joost De Cock 2021-11-21 17:20:24 +01:00
parent 87cfedd2ab
commit a9879aeda1
2 changed files with 5 additions and 9 deletions

View file

@ -2,7 +2,7 @@ const name = (n, so) => `${so.prefix}${n}${so.suffix}`
const drawBartack = (points, self) => {
let path = new self.Path().move(points.path1[0])
for (let i in points.path1) {
for (const i in points.path1) {
if (points.path1[i]) path = path.line(points.path1[i])
if (points.path2[i]) path = path.line(points.path2[i])
}