Fix Cryptomatte accurate option showing for Cycles, only needed for Eevee

This commit is contained in:
Brecht Van Lommel 2021-11-18 16:27:21 +01:00
parent 8d1357ea6b
commit ed91e759d1
1 changed files with 4 additions and 2 deletions

View File

@ -192,8 +192,10 @@ class ViewLayerCryptomattePanel(ViewLayerButtonsPanel, Panel):
view_layer.use_pass_cryptomatte_material,
view_layer.use_pass_cryptomatte_asset))
col.prop(view_layer, "pass_cryptomatte_depth", text="Levels")
col.prop(view_layer, "use_pass_cryptomatte_accurate",
text="Accurate Mode")
if context.engine == 'BLENDER_EEVEE':
col.prop(view_layer, "use_pass_cryptomatte_accurate",
text="Accurate Mode")
class VIEWLAYER_PT_layer_passes_cryptomatte(ViewLayerCryptomattePanel, Panel):