Skip to content

Commit

Permalink
Fix wriggle does not render correctly #109
Browse files Browse the repository at this point in the history
Canvas copy: translate: propagates string where number needed
  • Loading branch information
david-pfx committed Sep 29, 2024
1 parent 3a184cb commit 7b611da
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/js/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,11 @@ function applyVectorTransforms(obj) {
};

for (const tf of obj.transforms || []) {
tranfunc[tf[0]](obj, cwdIndexOf(tf[1]), tf[2]);
tranfunc[tf[0]](obj,
cwdIndexOf(tf[1]),
['rot','flip'].includes(tf[0])
? cwdIndexOf(tf[2])
: +tf[2]);
}
}

Expand Down

0 comments on commit 7b611da

Please sign in to comment.