Browse Source

distort: fix use of cylindrical_k in oSphereLens.cxx

rdb 6 years ago
parent
commit
029d7363cd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/distort/oSphereLens.cxx

+ 1 - 1
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);
   LPoint3 f = point2d * do_get_film_mat_inv(lens_cdata);
 
 
   PN_stdfloat focal_length = do_get_focal_length(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;
   PN_stdfloat sinAngle, cosAngle;
   csincos(deg_2_rad(angle), &sinAngle, &cosAngle);
   csincos(deg_2_rad(angle), &sinAngle, &cosAngle);