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

Comparing ray/src/rt/initotypes.c (file contents):
Revision 2.29 by greg, Sun Jan 31 20:06:15 2021 UTC vs.
Revision 2.30 by greg, Mon Feb 1 16:19:49 2021 UTC

# Line 119 | Line 119 | findmaterial(OBJREC *o)                        /* find an object's actual m
119                                          obj = ao->omod;
120                                  else
121                                          obj = lastmod(obj, ao->oargs.sarg[0]);
122 <                                if (obj < 0)
122 >                                if (obj == OVOID)
123                                          objerror(ao, USER, "bad reference");
124                                  ao = objptr(obj);
125                          } while (ao->otype == MOD_ALIAS);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines