Skip to content

Commit

Permalink
Fixed issue with PaintVarTransform incorrectly reading variation oper…
Browse files Browse the repository at this point in the history
…ands
  • Loading branch information
Lorp committed Nov 8, 2024
1 parent 13c44ff commit 63535e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/samsa-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -3037,8 +3037,8 @@ class SamsaBuffer extends DataView {
tell = this.tell();
this.seek(paint.offset + transformOffset);
readOperands(I32);
this.seek(tell);
addVariations(operands);
this.seek(tell);
paint.matrix = [ operands[0]/0x10000, operands[1]/0x10000, operands[2]/0x10000, operands[3]/0x10000, operands[4]/0x10000, operands[5]/0x10000 ];
this.seek(paint.offset + nextOffset);
paint.children.push(this.decodePaint(context)); // recursive
Expand Down

0 comments on commit 63535e7

Please sign in to comment.