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

Comparing ray/src/gen/xform.c (file contents):
Revision 2.2 by greg, Tue Dec 24 18:08:25 1991 UTC vs.
Revision 2.3 by greg, Thu Mar 12 11:43:58 1992 UTC

# Line 248 | Line 248 | FILE  *fin;
248                                  progname, fname, typ);
249                  exit(1);
250          }
251 <        if (issurface(fn))
251 >        if (ismodifier(fn))
252 >                printf("\n%s %s ", nam, typ);
253 >        else
254                  printf("\n%s %s ", newmod != NULL ? newmod : nam,
255                                  invert ? ofun[tinvers[fn]].funame : typ);
254        else
255                printf("\n%s %s ", nam, typ);
256                                                  /* object name */
257          fgetword(nam, sizeof(nam), fin);
258 <        if (idprefix != NULL && issurface(fn))
259 <                printf("%s.%s\n", idprefix, nam);
260 <        else
258 >        if (idprefix == NULL || ismodifier(fn))
259                  printf("%s\n", nam);
260 +        else
261 +                printf("%s.%s\n", idprefix, nam);
262                                                  /* transform arguments */
263          if ((*ofun[fn].funp)(fin) < 0) {
264                  fprintf(stderr, "%s: (%s): bad %s \"%s\"\n",

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines