From 63535e74e8366ac28c3421ed69561cdd9c980d07 Mon Sep 17 00:00:00 2001 From: lorp Date: Fri, 8 Nov 2024 00:52:42 +0000 Subject: [PATCH] Fixed issue with PaintVarTransform incorrectly reading variation operands --- src/samsa-core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/samsa-core.js b/src/samsa-core.js index 7b596b2..285165b 100644 --- a/src/samsa-core.js +++ b/src/samsa-core.js @@ -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