--- ray/src/rt/rview.c 2004/03/28 16:31:14 2.25 +++ ray/src/rt/rview.c 2005/01/21 00:52:59 2.27 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: rview.c,v 2.25 2004/03/28 16:31:14 greg Exp $"; +static const char RCSid[] = "$Id: rview.c,v 2.27 2005/01/21 00:52:59 greg Exp $"; #endif /* * rview.c - routines and variables for interactive view generation. @@ -67,7 +67,7 @@ int ambres = 32; /* ambient resolution */ int ambdiv = 256; /* ambient divisions */ int ambssamp = 64; /* ambient super-samples */ int ambounce = 0; /* ambient bounces */ -char *amblist[128]; /* ambient include/exclude list */ +char *amblist[AMBLLEN]; /* ambient include/exclude list */ int ambincl = -1; /* include == 1, exclude == 0 */ int greyscale = 0; /* map colors to brightness? */ @@ -215,11 +215,15 @@ again: else *++args = '\0'; switch (inpbuf[0]) { - case 'f': /* new frame (or free mem.) */ + case 'f': /* new frame (|focus|free) */ if (badcom("frame")) { - if (badcom("free")) - goto commerr; - free_objmem(); + if (badcom("focus")) { + if (badcom("free")) + goto commerr; + free_objmem(); + break; + } + getfocus(args); break; } getframe(args);