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

Comparing ray/src/gen/mkillum2.c (file contents):
Revision 2.1 by greg, Tue Nov 12 17:05:11 1991 UTC vs.
Revision 2.2 by greg, Wed Mar 11 12:25:47 1992 UTC

# Line 26 | Line 26 | char  *nm;
26          sprintf(errmsg, "(%s): cannot make illum for %s \"%s\"",
27                          nm, ofun[ob->otype].funame, ob->oname);
28          error(WARNING, errmsg);
29 <        if (!(il->flags & IL_LIGHT))
30 <                printobj(il->altmat, ob);
29 >        printobj(il->altmat, ob);
30   }
31  
32  
# Line 120 | Line 119 | char  *nm;
119                  if (il->sampdens > 0)
120                          flatout(il, distarr, nalt, nazi, u, v, fa->norm);
121                  illumout(il, ob);
122 <        } else if (!(il->flags & IL_LIGHT))
122 >        } else
123                  printobj(il->altmat, ob);
124                                  /* clean up */
125          freeface(ob);
# Line 191 | Line 190 | char  *nm;
190                  else
191                          objerror(ob, WARNING, "diffuse distribution");
192                  illumout(il, ob);
193 <        } else if (!(il->flags & IL_LIGHT))
193 >        } else
194                  printobj(il->altmat, ob);
195                                  /* clean up */
196          free((char *)distarr);
# Line 259 | Line 258 | char  *nm;
258                  if (il->sampdens > 0)
259                          flatout(il, distarr, nalt, nazi, u, v, co->ad);
260                  illumout(il, ob);
261 <        } else if (!(il->flags & IL_LIGHT))
261 >        } else
262                  printobj(il->altmat, ob);
263                                  /* clean up */
264          freecone(ob);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines