Updated to remove deprecated child() & assign(). Did not fully test module fromTo (didn't take time to fully understand), but no load/run errors.

This commit is contained in:
Doug Hawkins 2020-03-25 13:55:09 -06:00
parent df6741eae6
commit 2bd10b4206

View file

@ -50,7 +50,7 @@ module fromTo(from=[0,0,0], to=[1*m,0,0], size=[1*cm, 1*cm], align=[CENTER, CENT
rotate(angle)
translate( [ -endCaps[0]*size[0] - endExtras[0], size[0]*(-0.5-align[0]), size[1]*(-0.5+align[1]) ] )
rotate(rotation)
scale([length, size[0], size[1]]) child();
scale([length, size[0], size[1]]) children();
}
}