Blender Git Commit Log

Git Commits -> Revision bfaf4f2

Revision bfaf4f2 by Sergey Sharybin (master)
August 13, 2014, 10:35 (GMT)
Fix T41219: Cycles backface detection doesn't work properly

Root of the issue goes back to the on-fly normals commit and the
latest fix for it wasn't actually correct. I've mixed two fixes
in there.

So the idea here goes back to storing negative scaled object flag
and flip runtime-calculated normal if this flag is set, which is
pretty much the same as the original fix for the issue from me.

The issue with motion blur wasn't caused by the rumtime normals
patch and it had issues before, because it already did runtime
normals calculation. Now made it so motion triangles takes the
negative scale flag into account.

This actually makes code more clean imo and avoids rather confusing
flipping code in mesh.cpp.

Commit Details:

Full Hash: bfaf4f2d0d4e600f6f8e253033de2b05a93e3ec1
Parent Commit: 8d801c3
Lines Changed: +21, -22

8 Modified Paths:

/intern/cycles/kernel/geom/geom_motion_triangle.h (+5, -1) (Diff)
/intern/cycles/kernel/geom/geom_triangle.h (+10, -3) (Diff)
/intern/cycles/kernel/kernel_bake.h (+1, -1) (Diff)
/intern/cycles/kernel/kernel_light.h (+1, -1) (Diff)
/intern/cycles/kernel/kernel_shader.h (+1, -1) (Diff)
/intern/cycles/kernel/kernel_types.h (+1, -0) (Diff)
/intern/cycles/render/mesh.cpp (+0, -15) (Diff)
/intern/cycles/render/object.cpp (+2, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021