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

Comparing ray/src/common/instance.c (file contents):
Revision 1.1 by greg, Thu Feb 2 10:34:35 1989 UTC vs.
Revision 1.3 by greg, Thu Jul 27 22:25:56 1989 UTC

# Line 44 | Line 44 | int  flags;
44                  sc->next = slist;
45                  slist = sc;
46          }
47 <        if ((pathname = getpath(sname, libpath)) == NULL) {
47 >        if ((pathname = getpath(sname, libpath, R_OK)) == NULL) {
48                  sprintf(errmsg, "cannot find octree file \"%s\"", sname);
49                  error(USER, errmsg);
50          }
# Line 79 | Line 79 | int  flags;
79                  if (in->b.sca < 0.0)
80                          in->b.sca = -in->b.sca;
81                  in->obj = NULL;
82 <                (INSTANCE *)o->os = in;
82 >                o->os = (char *)in;
83          }
84          if (in->obj == NULL || (in->obj->ldflags & flags) != flags)
85                  in->obj = getscene(o->oargs.sarg[0], flags);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines