From eca913eadca85b7f234ce1ea73bcaa86e119609a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20S=C3=A1nchez?= Date: Tue, 16 Apr 2024 10:20:57 +0200 Subject: [PATCH] fix rotation matrix --- plugin-src/transformers/transformRectangleNode.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin-src/transformers/transformRectangleNode.ts b/plugin-src/transformers/transformRectangleNode.ts index 439603b..3a3a804 100644 --- a/plugin-src/transformers/transformRectangleNode.ts +++ b/plugin-src/transformers/transformRectangleNode.ts @@ -24,7 +24,7 @@ export const transformRectangleNode = ( e: 0, f: 0 }, - rotation: node.rotation < 0 ? node.rotation + 360 : node.rotation, + rotation: -node.rotation < 0 ? -node.rotation + 360 : -node.rotation, ...transformDimensionAndPosition(node, baseX, baseY), ...transformSceneNode(node), ...transformBlend(node)