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.34 by greg, Sat Oct 9 22:38:35 2010 UTC vs.
Revision 2.37 by greg, Fri Oct 18 17:04:13 2013 UTC

# Line 24 | Line 24 | int  code;
24   {
25          if (ray_pnprocs > 0)    /* close children if any */
26                  ray_pclose(0);
27 <        else if (!ray_pnprocs)  /* in parent */
27 >        if (!ray_pnprocs)       /* in parent */
28                  devclose();
29          exit(code);
30   }
# Line 213 | Line 213 | again:
213                  }
214                  getpivot(args);
215                  break;
216 +        case 'o':                               /* origin view */
217 +                if (badcom("origin"))
218 +                        goto commerr;
219 +                getorigin(args);
220 +                break;
221          case CTRL('R'):                         /* redraw */
222                  redraw();
223                  break;
# Line 249 | Line 254 | commerr:
254                  error(COMMAND, errmsg);
255                  break;
256          }
257 +        if (newparam && ray_pnprocs)            /* drop into immediate mode */
258 +                ray_pclose(0);
259   #undef  badcom
260   }
261  
# Line 331 | Line 338 | refine(                                /* refine a node */
338   {
339          int  growth;
340          int  mx, my;
334        int  i;
341  
342          if (dev->inpready)                      /* quit for input */
343                  return(0);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines