[Bf-blender-cvs] [23b068c] master: Fix T44922: Split kernel renders black when using Bump node

Sergey Sharybin noreply at git.blender.org
Tue Jun 2 08:56:10 CEST 2015


Commit: 23b068ce8aa57130d48e24d98ccea518ee7584aa
Author: Sergey Sharybin
Date:   Tue Jun 2 11:53:10 2015 +0500
Branches: master
https://developer.blender.org/rB23b068ce8aa57130d48e24d98ccea518ee7584aa

Fix T44922: Split kernel renders black when using Bump node

Was missing feature detection in the BumpNode in the previous selective nodes
compilation commit.

===================================================================

M	intern/cycles/render/nodes.h

===================================================================

diff --git a/intern/cycles/render/nodes.h b/intern/cycles/render/nodes.h
index d1b30db..4e78d58 100644
--- a/intern/cycles/render/nodes.h
+++ b/intern/cycles/render/nodes.h
@@ -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;
 };




More information about the Bf-blender-cvs mailing list