Cycles: Fix shading and crashes resulting from constant folding on displacement
authorMai Lavelle <mai.lavelle@gmail.com>
Sun, 11 Sep 2016 17:39:12 +0000 (13:39 -0400)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 14 Sep 2016 08:26:21 +0000 (10:26 +0200)
commit293d5db8956ee87a4ea2dfdaad0dd34216b7a47f
tree94cf2d697c5fa6364fba61bc62b75d04a386c998
parentfd01cd7d06fdb9e1c80070a46c0abc93e2f604e6
Cycles: Fix shading and crashes resulting from constant folding on displacement

Constant folding was removing all nodes connected to the displacement output
if they evaluated to a constant, causing there to be no valid graph for
displacement even when there was displacement to be applied, and sometimes
caused crashes.
intern/cycles/render/graph.cpp