Fixed edge case optimization in rotate_points3d()

This commit is contained in:
Revar Desmera 2019-06-21 17:04:16 -07:00
parent 65666ce334
commit 5eab1be429

View file

@ -131,7 +131,7 @@ function rotate_points3d(pts, a=0, v=undef, cp=[0,0,0], from=undef, to=undef, re
cp = point3d(cp),
pts2 = path3d(pts)
)
(!is_undef(from) && approx(from,to))? pts2 :
(!is_undef(from) && approx(from,to) && (a==0 || a == [0,0,0]))? pts2 :
let (
mrot = reverse? (
!is_undef(from)? (