ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/util/pictool.c
(Generate patch)

Comparing ray/src/util/pictool.c (file contents):
Revision 2.4 by greg, Thu May 18 02:25:27 2017 UTC vs.
Revision 2.5 by greg, Wed Jan 24 04:39:52 2018 UTC

# Line 689 | Line 689 | int            pict_locate(pict* p,FVECT pt,int* x,int* y)
689                  return 0;
690          }
691  
692 <        viewloc(pp,&(p->view),pt);
693 <        if (pp[2] < 0)
692 >        if (viewloc(pp,&(p->view),pt) <= 0)
693                  return 0;
694          loc2pix(res,&(p->resol),pp[0],pp[1]);
695          *x = res[0];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines