Cycles: mask layers were still confusing, now they work more like in the original
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Wed, 7 Mar 2012 12:27:38 +0000 (12:27 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Wed, 7 Mar 2012 12:27:38 +0000 (12:27 +0000)
commit again and less like blender internal, see documentation:
http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Passes

intern/cycles/blender/addon/ui.py
intern/cycles/blender/blender_sync.cpp

index 9eb8f251ebbf2dec415d219ac6bcaca7101788d5..faf057e13cc63eaaf94d16c0ea91c30eabba9992 100644 (file)
@@ -179,7 +179,6 @@ class CyclesRender_PT_layers(CyclesButtonsPanel, Panel):
         col.prop(scene, "layers", text="Scene")
         col.label(text="Material:")
         col.prop(rl, "material_override", text="")
-        col.prop(rl, "use_zmask");
 
         col = split.column()
         col.prop(rl, "layers", text="Layer")
index 45ed7adcfdc8460e3020be05628eb06a357a511a..defdb7b447d28745ae5a35e6c6c4b0cc6d0974ff 100644 (file)
@@ -204,7 +204,7 @@ void BlenderSync::sync_render_layers(BL::SpaceView3D b_v3d, const char *layer)
                                render_layer.name = b_rlay->name();
                                render_layer.scene_layer = get_layer(b_scene.layers());
                                render_layer.layer = get_layer(b_rlay->layers());
-                               render_layer.holdout_layer = (b_rlay->use_zmask())? ~get_layer(b_rlay->layers_zmask()): 0;
+                               render_layer.holdout_layer = get_layer(b_rlay->layers_zmask());
                                render_layer.layer |= render_layer.holdout_layer;
                                render_layer.material_override = b_rlay->material_override();
                        }