47 |
|
|
48 |
|
m = objptr(o->omod); |
49 |
|
|
50 |
< |
if (m->otype != MAT_LIGHT && |
51 |
< |
m->otype != MAT_ILLUM && |
52 |
< |
m->otype != MAT_GLOW && |
53 |
< |
m->otype != MAT_SPOT) |
50 |
> |
if (!islight(m->otype)) |
51 |
|
continue; |
52 |
|
|
53 |
|
if (m->oargs.nfargs != (m->otype == MAT_GLOW ? 4 : |
407 |
|
addcolor(r->rcol, srccnt[cntord[sn].sno].val); |
408 |
|
} |
409 |
|
|
410 |
< |
free(srccnt); |
411 |
< |
free(cntord); |
410 |
> |
free((char *)srccnt); |
411 |
> |
free((char *)cntord); |
412 |
|
} |
413 |
|
|
414 |
|
|
456 |
|
r->rt = r->rot; |
457 |
|
} |
458 |
|
} |
462 |
– |
|
463 |
– |
|
464 |
– |
o_source() {} /* intersection with a source is done elsewhere */ |