Cycles: Fixes for recent curve robustness
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 20 Dec 2018 15:45:38 +0000 (16:45 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 20 Dec 2018 15:45:38 +0000 (16:45 +0100)
commitb52465bd32def94daa2113c308d78433eac6c628
tree3c8d4fa757e4581c69abb9ed804880a88ccc0cb5
parentf7d216c1b6061260ffba4fc63a2ff45f212d213f
Cycles: Fixes for recent curve robustness

The key indices were wrong: need to offset curve key index
by first curve key index. Also corrected calculation of the
interpolation step.

Annoyingly, can not reproduce this on a simple file, need
production rig. For the possible future look the following
file from Spring was used: 03_005_A.lighting.debug.blend
intern/cycles/blender/blender_curves.cpp