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

Comparing ray/src/rt/func.c (file contents):
Revision 2.42 by greg, Tue Oct 29 00:36:54 2024 UTC vs.
Revision 2.44 by greg, Mon Jun 23 15:11:04 2025 UTC

# Line 127 | Line 127 | getfunc(       /* get function for this modifier */
127          if ((f = (MFUNC *)m->os) != NULL)
128                  return(f);
129          fobj = NULL; fray = NULL;
130        if (rayinitcal[0])              /* initialize on first call */
131                initfunc();
130          if ((na = m->oargs.nsargs) <= ff)
131                  goto toofew;
132          arg = m->oargs.sarg;
# Line 163 | Line 161 | getfunc(       /* get function for this modifier */
161                  goto toofew;
162          if (i <= ff)                    /* find transform args */
163                  i = ff+1;
164 <        while (i < na && arg[i][0] != '-')
164 >        while (i < na && !isxfopt(arg[i]))
165                  i++;
166          if (i == na) {                  /* no transform */
167                  f->fxp = f->bxp = &unitxf;
# Line 261 | Line 259 | worldfunc(                     /* special function context sans object *
259   )
260   {
261          static RNUMBER  lastrno = ~0;
264
265        if (rayinitcal[0])              /* initialize on first call */
266                initfunc();
262                                          /* set evaluator context */
263          calcontext((char *)ctx);
264                                          /* check if ray already set */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines