From 029d7363cd61af37e6521b36b6a82e11554c0570 Mon Sep 17 00:00:00 2001 From: rdb Date: Sun, 17 Mar 2019 00:17:11 +0100 Subject: [PATCH] distort: fix use of cylindrical_k in oSphereLens.cxx --- panda/src/distort/oSphereLens.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/src/distort/oSphereLens.cxx b/panda/src/distort/oSphereLens.cxx index 7b8bd35591..9175453fd9 100644 --- a/panda/src/distort/oSphereLens.cxx +++ b/panda/src/distort/oSphereLens.cxx @@ -48,7 +48,7 @@ do_extrude(const Lens::CData *lens_cdata, LPoint3 f = point2d * do_get_film_mat_inv(lens_cdata); PN_stdfloat focal_length = do_get_focal_length(lens_cdata); - PN_stdfloat angle = f[0] * cylindrical_k / focal_length; + PN_stdfloat angle = f[0] * ospherical_k / focal_length; PN_stdfloat sinAngle, cosAngle; csincos(deg_2_rad(angle), &sinAngle, &cosAngle);