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.31 by greg, Wed Nov 15 18:02:52 2023 UTC

# Line 84 | Line 84 | initotypes(void)                       /* initialize ofun array */
84          ofun[PAT_BFUNC].funp = p_bfunc;
85          ofun[PAT_CPICT].funp = p_pdata;
86          ofun[PAT_CDATA].funp = p_cdata;
87 +        ofun[PAT_SPECTRUM].funp = p_spectrum;
88 +        ofun[PAT_SPECFILE].funp = p_specfile;
89 +        ofun[PAT_SPECFUNC].funp = p_specfunc;
90          ofun[PAT_BDATA].funp = p_bdata;
91          ofun[PAT_CTEXT].funp =
92          ofun[PAT_BTEXT].funp =
# Line 119 | Line 122 | findmaterial(OBJREC *o)                        /* find an object's actual m
122                                          obj = ao->omod;
123                                  else
124                                          obj = lastmod(obj, ao->oargs.sarg[0]);
125 <                                if (obj < 0)
125 >                                if (obj == OVOID)
126                                          objerror(ao, USER, "bad reference");
127                                  ao = objptr(obj);
128                          } while (ao->otype == MOD_ALIAS);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines