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 |
|
/* |
86 |
|
TLINE *tlalloc(); |
87 |
|
|
88 |
|
|
89 |
< |
text(m, r) |
89 |
> |
do_text(m, r) |
90 |
|
register OBJREC *m; |
91 |
|
RAY *r; |
92 |
|
{ |
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 |
|
} |
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); |