Page MenuHome

Division by zero when there are no lights and only emissive surfaces
ClosedPublic

Authored by William Leeson (leesonw) on Jun 23 2021, 7:52 AM.

Details

Diff Detail

Repository
rB Blender

Event Timeline

William Leeson (leesonw) requested review of this revision.Jun 23 2021, 7:52 AM
William Leeson (leesonw) created this revision.

Moved the following variables: { use_lamp_mis, light_index } outside the test for zero lights as they are used in other places.

Brecht Van Lommel (brecht) requested changes to this revision.Jun 23 2021, 1:37 PM
Brecht Van Lommel (brecht) added inline comments.
intern/cycles/render/light.cpp
438–439

Some odd indentation here.

If you have clang-format set up on file save, it should correct that automatically.

This revision now requires changes to proceed.Jun 23 2021, 1:37 PM

I have applied the clang-formating now (sorry I had missed this earlier).

Removed some extra whitespace.

This revision is now accepted and ready to land.Jun 24 2021, 4:54 PM