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

Comparing ray/src/rt/func.c (file contents):
Revision 1.1 by greg, Thu Feb 2 10:41:23 1989 UTC vs.
Revision 1.2 by greg, Tue Feb 21 14:56:17 1989 UTC

# Line 63 | Line 63 | setfunc(m, r)                          /* simplified interface to setmap */
63   register OBJREC  *m;
64   RAY  *r;
65   {
66 < #define  mxf    ((XF *)m->os)
66 >        register XF  *mxf;
67  
68 <        if (mxf == NULL) {
68 >        if ((mxf = (XF *)m->os) == NULL) {
69                  register int  n = m->oargs.nsargs;
70                  register char  **sa = m->oargs.sarg;
71  
# Line 82 | Line 82 | RAY  *r;
82                          objerror(m, USER, "bad transform");
83                  if (mxf->sca < 0.0)
84                          mxf->sca = -mxf->sca;
85 +                m->os = (char *)mxf;
86          }
87          setmap(m, r, mxf->sca, mxf->xfm);
88          return;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines