Fixed bug in offset(), failure for r=0

This commit is contained in:
Adrian Mariano 2020-04-06 18:18:13 -04:00
parent 5339062f76
commit 72531fd812

View file

@ -702,6 +702,7 @@ function offset(
], ],
steps = is_def(delta) ? [] : [ steps = is_def(delta) ? [] : [
for(i=[0:len(goodsegs)-1]) for(i=[0:len(goodsegs)-1])
r==0 ? 0 :
ceil( ceil(
abs(r)*vector_angle( abs(r)*vector_angle(
select(goodsegs,i-1)[1]-goodpath[i], select(goodsegs,i-1)[1]-goodpath[i],