Cycles: avoid making NaNs in Vector Math node by normalizing zero vectors.
authorAlexander Gavrilov <angavrilov@gmail.com>
Tue, 9 Aug 2016 10:20:08 +0000 (13:20 +0300)
committerAlexander Gavrilov <angavrilov@gmail.com>
Tue, 9 Aug 2016 10:20:22 +0000 (13:20 +0300)
commita7f6f900f373bda23d90e86a407e0d36fbdd8a03
tree97b861102ff94f85d56584ecef2be1fbe820c154
parentc2a7317d1f4971bba0652bb56aadb01ff11702d9
Cycles: avoid making NaNs in Vector Math node by normalizing zero vectors.

Since inputs are user controlled, the node can't assume they aren't zero.
intern/cycles/kernel/svm/svm_math_util.h
intern/cycles/util/util_math.h