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.17 by gregl, Mon Nov 17 13:13:07 1997 UTC

# 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)
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