diff options
author | Falk David <falkdavid@gmx.de> | 2021-05-26 17:46:00 +0300 |
---|---|---|
committer | Falk David <falkdavid@gmx.de> | 2021-05-26 17:46:20 +0300 |
commit | e459a25e6cbe9321ad25f87843e2fe5a8a2306f9 (patch) | |
tree | e9d3bda1221cd29f381674e4c7adc6b4fd2b86d1 /release/scripts | |
parent | a6f3bb36df43fc4755a113fe37202e3ef437aa43 (diff) |
GPencil: Add option to disable masks in view layer
This patch adds an option in the Layers > Relations panel called "Disable Masks in Render".
When checked, no masks on this layer are included in the render.
Example:
| {F10087680} | {F10087681} |
See T88202 for why this is needed.
Reviewed By: antoniov
Maniphest Tasks: T88202
Differential Revision: https://developer.blender.org/D11234
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_grease_pencil_common.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py index 55a49878b71..0111bdea8b1 100644 --- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py +++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py @@ -856,7 +856,11 @@ class GreasePencilLayerRelationsPanel: col = layout.row(align=True) col.prop_search(gpl, "viewlayer_render", scene, "view_layers", text="View Layer") - + + col = layout.row(align=True) + # Only enable this property when a view layer is selected. + col.enabled = bool(gpl.viewlayer_render) + col.prop(gpl, "disable_masks_viewlayer") class GreasePencilLayerDisplayPanel: |