Fix T49136: full constant Curves with zero Fac input crashes in assert.
authorAlexander Gavrilov <angavrilov@gmail.com>
Mon, 22 Aug 2016 08:11:45 +0000 (11:11 +0300)
committerAlexander Gavrilov <angavrilov@gmail.com>
Mon, 22 Aug 2016 08:11:45 +0000 (11:11 +0300)
commiteb2ee7212e16547e2a79b967d2ed37d88b0f2565
tree06c1aed2bd016a61deaa47b2908f6be6825504d2
parent28cf9cfd15acad4c8eb2fd8a4d3df3a3905aa71e
Fix T49136: full constant Curves with zero Fac input crashes in assert.

The if branches were reordered when the original patch was
committed, which broke the implicit non-NULL guarantee on link.

To prevent re-occurrence, add a couple of unit tests.
intern/cycles/render/nodes.cpp
intern/cycles/test/render_graph_finalize_test.cpp