From 85a03f7c1d44b577c98d5d23cc0e724538dc5b74 Mon Sep 17 00:00:00 2001 From: STEINNI Date: Mon, 2 Mar 2026 20:37:58 +0000 Subject: [PATCH] graflow: small fix for loop always bezier --- bzGraflow.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bzGraflow.js b/bzGraflow.js index ccca598..fccb011 100644 --- a/bzGraflow.js +++ b/bzGraflow.js @@ -495,13 +495,13 @@ class BZgraflow extends Buildoz{ } } - if(wireType === 'bezier') { + if((wireType === 'bezier') || loop) { // loops only use bezier to look good return(`M ${x1} ${y1} C ${c1x} ${c1y}, ${c2x} ${c2y}, ${x2} ${y2}`) } - if(wireType === 'straight') { + if((wireType === 'straight') && (!loop)) { return(`M ${x1} ${y1} L ${c1x} ${c1y} L ${c2x} ${c2y} L ${x2} ${y2}`) } - if(wireType === 'ortho') { + if((wireType === 'ortho') && (!loop)) { let path = `M ${x1} ${y1} ` if(['n', 's'].includes(port1.direction)) { path += `V ${(c1y+c2y)/2} H ${c2x} V ${y2}`