Bugfix for unit() changes in attachment

This commit is contained in:
Garth Minette 2020-07-19 05:49:05 -07:00
parent 598ae04ba5
commit 14e013cd13
2 changed files with 2 additions and 2 deletions

View file

@ -421,7 +421,7 @@ function find_anchor(anchor, geom) =
top = point3d(vmul(point2d(size2)/2,axy)+shift,h/2),
pos = point3d(cp) + lerp(bot,top,u) + offset,
sidevec = unit(rot(from=UP, to=top-bot, p=point3d(axy)),UP),
vvec = anchor==CENTER? UP : unit([0,0,anchor.z]),
vvec = anchor==CENTER? UP : unit([0,0,anchor.z],UP),
vec = anchor==CENTER? UP :
approx(axy,[0,0])? unit(anchor,UP) :
approx(anchor.z,0)? sidevec :

View file

@ -8,7 +8,7 @@
//////////////////////////////////////////////////////////////////////
BOSL_VERSION = [2,0,392];
BOSL_VERSION = [2,0,393];
// Section: BOSL Library Version Functions