Fix T54225: Blur node stopped working when Map Range was fed with image
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 5 Mar 2018 10:44:42 +0000 (11:44 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 5 Mar 2018 10:44:42 +0000 (11:44 +0100)
commit63d8ccf9ffb18c8670292d8c57dbd85c629de485
tree77ebe4f5f8bcb861f48f378618038f9b727f3b5e
parent9593a627465b70c4a999d0289a6283869d3eeaab
Fix T54225: Blur node stopped working when Map Range was fed with image

The issue was happening with fast Gaussian blur, and caused by NaN value pixels
in the input buffer.

Now made it so Map Range output does not produce NaN, by returning arbitrary
value of 0. Still better than NaN!
source/blender/compositor/operations/COM_MapRangeOperation.cpp