Fix T44922: Split kernel renders black when using Bump node
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 2 Jun 2015 06:53:10 +0000 (11:53 +0500)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 2 Jun 2015 06:53:10 +0000 (11:53 +0500)
Was missing feature detection in the BumpNode in the previous selective nodes
compilation commit.

intern/cycles/render/nodes.h

index d1b30db18a950c8913bf815b5413c3dea9bfb18f..4e78d58aaf324f4fc52a26506812d9e2ac16c850 100644 (file)
@@ -651,6 +651,10 @@ class BumpNode : public ShaderNode {
 public:
        SHADER_NODE_CLASS(BumpNode)
        bool has_spatial_varying() { return true; }
+       virtual int get_feature() {
+               /* TODO(sergey): Check for incoming links. */
+               return NODE_FEATURE_BUMP;
+       }
 
        bool invert;
 };