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

Comparing ray/src/ot/wfconv.c (file contents):
Revision 2.6 by schorsch, Sun Jul 27 22:12:03 2003 UTC vs.
Revision 2.7 by greg, Thu Jan 29 22:21:34 2004 UTC

# Line 292 | Line 292 | char   *v1, *v2, *v3;
292          RREAL   *v1c, *v2c, *v3c;
293          RREAL   *v1n, *v2n, *v3n;
294          
295 <        if (!cvtndx(v1i, v1) || !cvtndx(v2i, v2) || !cvtndx(v3i, v3))
295 >        if (!cvtndx(v1i, v1) || !cvtndx(v2i, v2) || !cvtndx(v3i, v3)) {
296 >                error(WARNING, "bad vertex reference");
297                  return(0);
298 <
298 >        }
299          if (v1i[1]>=0 && v2i[1]>=0 && v3i[1]>=0) {
300                  v1c = vtlist[v1i[1]];
301                  v2c = vtlist[v2i[1]];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines