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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2016-05-22 10:57:36 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2016-05-22 18:36:38 +0300
commitca03eddfcc4416c46afe4b633e5e8364da217fa8 (patch)
tree2569e3f3d6e5aa5669a9036e759e8e465c15d219 /intern/cycles/blender/blender_util.h
parent9b9921b765bca2dacc7ec0633dcf0ab1ab68be68 (diff)
Cleanup: remove Cycles layer bits checking in the kernel.
At some point the idea was that we could have an optimization where we could render multiple render layers without re-exporting the scene, by just updating the layer bits. We are not doing this now and in practice with the available render layer control like exclude layers it's not always possible anyway. This makes it easier to support an arbitrary number of layers in the future (hopefully this summer), and frees up some useful bits in the kernel. Reviewed By: sergey, dingto Differential Revision: https://developer.blender.org/D2020
Diffstat (limited to 'intern/cycles/blender/blender_util.h')
-rw-r--r--intern/cycles/blender/blender_util.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/intern/cycles/blender/blender_util.h b/intern/cycles/blender/blender_util.h
index d856982fddb..e23d8bf4e2d 100644
--- a/intern/cycles/blender/blender_util.h
+++ b/intern/cycles/blender/blender_util.h
@@ -275,7 +275,6 @@ static inline uint get_layer(const BL::Array<int, 20>& array)
static inline uint get_layer(const BL::Array<int, 20>& array,
const BL::Array<int, 8>& local_array,
- bool use_local,
bool is_light = false,
uint scene_layers = (1 << 20) - 1)
{
@@ -300,13 +299,6 @@ static inline uint get_layer(const BL::Array<int, 20>& array,
layer |= (1 << (20+i));
}
- /* we don't have spare bits for localview (normally 20-28) because
- * PATH_RAY_LAYER_SHIFT uses 20-32. So - check if we have localview and if
- * so, shift local view bits down to 1-8, since this is done for the view
- * port only - it should be OK and not conflict with render layers. */
- if(use_local)
- layer >>= 20;
-
return layer;
}