diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2013-11-29 20:17:00 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2013-11-29 20:18:43 +0400 |
commit | 4d6c877b66903877ca379067299ed7cebdf8a94f (patch) | |
tree | 2e22094d346d9d8eb06b48efb0b608f7ba1e7be1 /intern/cycles/kernel/osl/bsdf_diffuse_ramp.cpp | |
parent | 3bf77c34eb2be69955afa7f8b7fb014a186ea09c (diff) |
Cycles OSL: fix mistake in recent refactoring, parameters are not set before setup.
Diffstat (limited to 'intern/cycles/kernel/osl/bsdf_diffuse_ramp.cpp')
-rw-r--r-- | intern/cycles/kernel/osl/bsdf_diffuse_ramp.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/intern/cycles/kernel/osl/bsdf_diffuse_ramp.cpp b/intern/cycles/kernel/osl/bsdf_diffuse_ramp.cpp index 0e8193aa68c..8f9c2efd470 100644 --- a/intern/cycles/kernel/osl/bsdf_diffuse_ramp.cpp +++ b/intern/cycles/kernel/osl/bsdf_diffuse_ramp.cpp @@ -50,6 +50,9 @@ public: float3 fcolors[8]; DiffuseRampClosure() : CBSDFClosure(LABEL_DIFFUSE) + {} + + void setup() { sc.prim = this; m_shaderdata_flag = bsdf_diffuse_ramp_setup(&sc); |