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

Comparing ray/src/rt/text.c (file contents):
Revision 2.16 by greg, Sat Jun 22 09:48:52 1996 UTC vs.
Revision 2.19 by gwlarson, Thu May 20 13:51:19 1999 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1995 Regents of the University of California */
1 > /* Copyright (c) 1998 Silicon Graphics, Inc. */
2  
3   #ifndef lint
4 < static char SCCSid[] = "$SunId$ LBL";
4 > static char SCCSid[] = "$SunId$ SGI";
5   #endif
6  
7   /*
# Line 105 | Line 105 | RAY  *r;
105                  char  *modname = m->oargs.sarg[foreground ? 0 : 1];
106                  if (!strcmp(modname, VOIDID))
107                          omod = OVOID;
108 <                else if ((omod = modifier(modname)) == OVOID) {
108 >                else if ((omod = lastmod(objndx(m), modname)) == OVOID) {
109                          sprintf(errmsg, "undefined modifier \"%s\"", modname);
110                          objerror(m, USER, errmsg);
111                  }
# Line 179 | Line 179 | register OBJREC  *tm;
179                                                  /* compute vectors */
180          fcross(DxR, D, R);
181          fcross(t->right, DxR, D);
182 <        d = DOT(D,D)/DOT(t->right,t->right);
182 >        d = DOT(t->right,t->right);
183 >        if (d <= FTINY*FTINY*FTINY*FTINY)
184 >                objerror(tm, USER, "illegal motion vector");
185 >        d = DOT(D,D)/d;
186          for (i = 0; i < 3; i++)
187                  t->right[i] *= d;
188          fcross(t->down, R, DxR);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines