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 |
|
|
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); |
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); |
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); |