diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-09-03 11:52:56 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-09-03 11:52:56 +0300 |
commit | 357e749957dc4899f11b6a9335a9cab2aac42b21 (patch) | |
tree | 27eb0143f3602ab4a92265bd31fc257d19f335e2 /intern | |
parent | f387fe2b6515513c3891f6533b20a950d908f54b (diff) |
Cycles: Fix nondeterministic pass ordering when using baker
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/render/film.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/intern/cycles/render/film.cpp b/intern/cycles/render/film.cpp index 7282b04a22e..58080289633 100644 --- a/intern/cycles/render/film.cpp +++ b/intern/cycles/render/film.cpp @@ -144,7 +144,13 @@ void Pass::add(PassType type, vector<Pass>& passes) pass.exposure = false; break; case PASS_LIGHT: - /* ignores */ + /* This isn't a real pass, used by baking to see whether + * light data is needed or not. + * + * Set components to 0 so pass sort below happens in a + * determined way. + */ + pass.components = 0; break; #ifdef WITH_CYCLES_DEBUG case PASS_BVH_TRAVERSAL_STEPS: |