Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2015-09-03 11:52:56 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-09-03 11:52:56 +0300
commit357e749957dc4899f11b6a9335a9cab2aac42b21 (patch)
tree27eb0143f3602ab4a92265bd31fc257d19f335e2 /intern/cycles
parentf387fe2b6515513c3891f6533b20a950d908f54b (diff)
Cycles: Fix nondeterministic pass ordering when using baker
Diffstat (limited to 'intern/cycles')
-rw-r--r--intern/cycles/render/film.cpp8
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: