--- ray/src/rt/raycalls.c 2003/06/30 14:59:12 2.4 +++ ray/src/rt/raycalls.c 2003/08/26 04:24:26 2.6 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: raycalls.c,v 2.4 2003/06/30 14:59:12 schorsch Exp $"; +static const char RCSid[] = "$Id: raycalls.c,v 2.6 2003/08/26 04:24:26 greg Exp $"; #endif /* * raycalls.c - interface for running Radiance rendering as a library @@ -116,7 +116,7 @@ int samplendx = 0; /* index for this sample */ void (*trace)() = NULL; /* trace call */ extern void ambnotify(); -void (*addobjnotify[])() = {ambnotify, NULL}; +void (*addobjnotify[8])() = {ambnotify, NULL}; int do_irrad = 0; /* compute irradiance? */ @@ -163,8 +163,7 @@ char *otnm; if (ofun[OBJ_SPHERE].funp == o_default) initotypes(); /* initialize urand */ - if (urperm == NULL) - initurand(2048); + initurand(2048); /* read scene octree */ readoct(octname = otnm, ~(IO_FILES|IO_INFO), &thescene, NULL); nsceneobjs = nobjects;