Cycles / Hair: Some cleanup and optimizations for hair code.
authorThomas Dinges <blender@dingto.org>
Thu, 26 Dec 2013 01:02:14 +0000 (02:02 +0100)
committerThomas Dinges <blender@dingto.org>
Thu, 26 Dec 2013 01:02:14 +0000 (02:02 +0100)
commita649b6eef515aacccf01114c0bfa87cb22b29c22
tree67c40aabea8c1d2595ea2ea6c2b8f98da60c511b
parentef9a9428a5aa5db713435bd86bbef0ddec7d99d1
Cycles / Hair: Some cleanup and optimizations for hair code.

* Remove dead code from line segments BVH refine.
CURVE_KN_TANGENTGNORMAL and CURVE_KN_TRUETANGENTGNORMAL are either both true, or both false. Therefore a true/false condition is impossible.
This was a leftover of CURVE_CUSTOM, which was removed in r59234.

* Use "else if" in blender_curves.cpp.
intern/cycles/blender/blender_curves.cpp
intern/cycles/kernel/kernel_bvh.h