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

Comparing ray/src/rt/rview.c (file contents):
Revision 2.35 by greg, Tue Aug 16 18:09:53 2011 UTC vs.
Revision 2.38 by greg, Sat Jun 7 05:09:46 2025 UTC

# Line 13 | Line 13 | static const char      RCSid[] = "$Id$";
13   #include  <ctype.h>
14  
15   #include  "ray.h"
16 + #include  "paths.h"
17   #include  "rpaint.h"
18  
19   #define  CTRL(c)        ((c)-'@')
# Line 24 | Line 25 | int  code;
25   {
26          if (ray_pnprocs > 0)    /* close children if any */
27                  ray_pclose(0);
28 <        else if (!ray_pnprocs)  /* in parent */
28 >        if (!ray_pnprocs)       /* in parent */
29                  devclose();
30          exit(code);
31   }
# Line 35 | Line 36 | devopen(                               /* open device driver */
36          char  *dname
37   )
38   {
39 <        extern char  *progname, *octname;
39 >        extern char  *octname;
40          char  *id;
41          int  i;
42  
# Line 213 | Line 214 | again:
214                  }
215                  getpivot(args);
216                  break;
217 +        case 'o':                               /* origin view */
218 +                if (badcom("origin"))
219 +                        goto commerr;
220 +                getorigin(args);
221 +                break;
222          case CTRL('R'):                         /* redraw */
223                  redraw();
224                  break;
# Line 249 | Line 255 | commerr:
255                  error(COMMAND, errmsg);
256                  break;
257          }
258 +        if (newparam && ray_pnprocs)            /* drop into immediate mode */
259 +                ray_pclose(0);
260   #undef  badcom
261   }
262  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines