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

Comparing ray/src/util/xglaresrc.c (file contents):
Revision 2.11 by greg, Mon Apr 2 16:45:41 2018 UTC vs.
Revision 2.12 by greg, Thu May 14 20:58:03 2020 UTC

# Line 241 | Line 241 | circle(                /* indicate a solid angle on image */
241                  cur[0] += ourview.vp[0];
242                  cur[1] += ourview.vp[1];
243                  cur[2] += ourview.vp[2];
244 <                if (viewloc(pp, &ourview, cur) <= 0)
244 >                if (viewloc(pp, &ourview, cur) != VL_GOOD)
245                          goto fail;
246                  loc2pix(ip, &pres, pp[0], pp[1]);
247                  pt[i].x = ip[0];
# Line 269 | Line 269 | value(                 /* print value on image */
269          pos[0] = ourview.vp[0] + dir[0];
270          pos[1] = ourview.vp[1] + dir[1];
271          pos[2] = ourview.vp[2] + dir[2];
272 <        if (viewloc(pp, &ourview, pos) <= 0)
272 >        if (viewloc(pp, &ourview, pos) != VL_GOOD)
273                  return;
274          loc2pix(ip, &pres, pp[0], pp[1]);
275          sprintf(buf, "%.0f", v);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines