YafaRay/Core — pull request #11 by OlafArnold (2012-04-17 15:54:42+00:00)
Title: Meshlight:

-fix for meshlight -> illumSample generates NAN's,
avoid ZeroDivision by adding a check to s.pdf.

Bug reported by samo here with example file:
http://www.yafaray.org/comment/reply/512

Hi DarkTide,
did another version of fix and hope it is ok now,
if not let me know.. ;)

Subcomandante would say i am fired then, if it is not ok. :)