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

Comparing ray/src/rt/func.c (file contents):
Revision 2.39 by greg, Wed Mar 30 16:00:56 2022 UTC vs.
Revision 2.40 by greg, Fri Feb 23 03:45:52 2024 UTC

# Line 203 | Line 203 | freefunc(                      /* free memory associated with modifier */
203          if ((f = (MFUNC *)m->os) == NULL)
204                  return;
205          for (i = 0; f->ep[i] != NULL; i++)
206 <                epfree(f->ep[i]);
206 >                epfree(f->ep[i],1);
207          if (f->ctx[0]) {                        /* done with definitions */
208                  calcontext(f->ctx);
209                  i = varvalue(REFVNAME)-.5;      /* reference_count-- */
# Line 290 | Line 290 | loadfunc(                      /* load definition file */
290                  error(SYSTEM, errmsg);
291          }
292          fcompile(ffname);
293 +        doptimize(1);           /* optimize definitions */
294   }
295  
296  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines