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/osl_bssrdf.cpp | |
parent | 3bf77c34eb2be69955afa7f8b7fb014a186ea09c (diff) |
Cycles OSL: fix mistake in recent refactoring, parameters are not set before setup.
Diffstat (limited to 'intern/cycles/kernel/osl/osl_bssrdf.cpp')
-rw-r--r-- | intern/cycles/kernel/osl/osl_bssrdf.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/intern/cycles/kernel/osl/osl_bssrdf.cpp b/intern/cycles/kernel/osl/osl_bssrdf.cpp index 887015c886e..94337290d20 100644 --- a/intern/cycles/kernel/osl/osl_bssrdf.cpp +++ b/intern/cycles/kernel/osl/osl_bssrdf.cpp @@ -52,6 +52,9 @@ using namespace OSL; class CubicBSSRDFClosure : public CBSSRDFClosure { public: CubicBSSRDFClosure() + {} + + void setup() { sc.type = CLOSURE_BSSRDF_CUBIC_ID; sc.data0 = fabsf(average(radius)); @@ -90,6 +93,9 @@ CCLOSURE_PREPARE(closure_bssrdf_cubic_prepare, CubicBSSRDFClosure) class GaussianBSSRDFClosure : public CBSSRDFClosure { public: GaussianBSSRDFClosure() + {} + + void setup() { sc.type = CLOSURE_BSSRDF_GAUSSIAN_ID; sc.data0 = fabsf(average(radius)); |