diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-06-01 13:26:36 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-06-01 17:49:52 +0300 |
commit | 4d8cf1329df3cf545acbe369e3d7c39428cf91d2 (patch) | |
tree | 40e345d43babf2b61594d53f0d1fb5bf8834e025 /intern/cycles/render/graph.h | |
parent | 36ef6d1532293a29701e658590c76f06af1f00a8 (diff) |
Cycles: Add bump feature for selective nodes compilation
For now it is unused in the kernel, actual usage will come with
the next commits.
Diffstat (limited to 'intern/cycles/render/graph.h')
-rw-r--r-- | intern/cycles/render/graph.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/render/graph.h b/intern/cycles/render/graph.h index 1a17909bddc..93341b56d99 100644 --- a/intern/cycles/render/graph.h +++ b/intern/cycles/render/graph.h @@ -225,7 +225,7 @@ public: * so it's possible to disable huge nodes inside of the required * nodes group. */ - virtual int get_feature() { return 0; } + virtual int get_feature() { return bump == SHADER_BUMP_NONE ? 0 : NODE_FEATURE_BUMP; } }; |