Fix T44922: Split kernel renders black when using Bump node
Was missing feature detection in the BumpNode in the previous selective nodes compilation commit.
This commit is contained in:
parent
660234bfba
commit
23b068ce8a
Notes:
blender-bot
2023-02-14 09:03:49 +01:00
Referenced by issue #44922, GPU and CPU rendering differs (sponza test file again)
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue