Skip to content

AI-native design editor. Open-source Figma alternative.

fix(canvas): prefer imported vector stroke geometry

Danila Poyarkovc75125cf2c1d
diff --git a/packages/core/src/canvas/scene.ts b/packages/core/src/canvas/scene.ts
index 39af5af7f..0f2209287 100644
--- a/packages/core/src/canvas/scene.ts
+++ b/packages/core/src/canvas/scene.ts
@@ -449,7 +449,7 @@ function drawNodeStroke(
vectorPaths: Path[] | null,
vectorStroke: Path[] | null
): void {
- if (vectorStroke && stroke.align === 'CENTER' && node.cornerRadius === 0) {
+ if (!sg && vectorStroke && stroke.align === 'CENTER' && node.cornerRadius === 0) {
const outlineKey = `${node.id}|${stroke.weight}|${stroke.cap ?? 'NONE'}|${stroke.join ?? 'MITER'}`
drawVectorPathStrokes(r, canvas, vectorStroke, stroke, sc, outlineKey)
return