diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2016-05-08 02:54:35 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2016-05-17 22:39:16 +0300 |
commit | 08670d3b8117cda608c178688f261e1204794a0d (patch) | |
tree | 4a82f0e7d2212bfc956619880d6b7cc168a2e7df /intern/cycles/render/svm.cpp | |
parent | 93e4ae84ad31dc6a56fd249592b24007ea286ddc (diff) |
Code refactor: use dynamic shader node array lengths now that OSL supports them.
Diffstat (limited to 'intern/cycles/render/svm.cpp')
-rw-r--r-- | intern/cycles/render/svm.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/intern/cycles/render/svm.cpp b/intern/cycles/render/svm.cpp index 8f23a1f5ac9..1d00a5f764e 100644 --- a/intern/cycles/render/svm.cpp +++ b/intern/cycles/render/svm.cpp @@ -338,12 +338,6 @@ void SVMCompiler::add_node(const float4& f) __float_as_int(f.w))); } -void SVMCompiler::add_array(float4 *f, int num) -{ - for(int i = 0; i < num; i++) - add_node(f[i]); -} - uint SVMCompiler::attribute(ustring name) { return shader_manager->get_attribute_id(name); |