Skip to content

Commit 344a8ab

Browse files
committed
Don't snap edges of rbox if it's rounded
1 parent 4bcd813 commit 344a8ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/common/rbox.fl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ func rbox(_, position=0, size=1, rotation=null, radius=null, segments=null)
44
let radius=clamp(radius/size if radius != null else 0.25, 0, 0.5)
55
inner=1-radius*2
66
segments=max(1, segments//8)*8 if segments != null
7-
!union position=position size=size rotation=rotation
7+
!union position=position size=size rotation=rotation snap_edges=(0.5 if radius[0] and radius[1] and radius[2] else 0.05)
88
if inner[1] and inner[2]
99
!box size=1;inner[1];inner[2]
1010
if inner[0] and inner[1]

0 commit comments

Comments
 (0)