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.5 by schorsch, Thu Jun 26 00:58:10 2003 UTC vs.
Revision 2.7 by greg, Thu Jan 29 22:21:34 2004 UTC

# Line 66 | Line 66 | char   *objfn;
66          group[0] = '\0';
67          lineno = 0; faceno = 0;
68                                          /* scan until EOF */
69 <        while (argc = getstmt(argv, fp)) {
69 >        while ( (argc = getstmt(argv, fp)) ) {
70                  switch (argv[0][0]) {
71                  case 'v':               /* vertex */
72                          switch (argv[0][1]) {
# 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