diff options
author | Lictex Steaven <lictex_> | 2022-03-26 20:25:53 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2022-03-26 20:26:43 +0300 |
commit | 08d2428632ede37e0c42a963665b1d5d1075e542 (patch) | |
tree | f5f135d2c855d4c38346d4d47f47863e73505e47 | |
parent | 082b063f2aefdfaadca8b2f33b505b956959195f (diff) |
GPencil: Add an xray toggle for each annotation layer
so a layer can be occluded by the scene instead of always showing in front
---
{F12827163}
Reviewed By: fclem, antoniov
Differential Revision: https://developer.blender.org/D13931
-rw-r--r-- | release/scripts/startup/bl_ui/properties_grease_pencil_common.py | 4 |
1 files changed, 4 insertions, 0 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 947a7e5c7a7..d5a9887f551 100644 --- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py +++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py @@ -361,6 +361,10 @@ class GPENCIL_UL_annotation_layer(UIList): split.prop(gpl, "info", text="", emboss=False) row = layout.row(align=True) + + icon_xray = "XRAY" if gpl.show_in_front else "FACESEL" + row.prop(gpl, "show_in_front", text="", icon=icon_xray, emboss=False) + row.prop(gpl, "annotation_hide", text="", emboss=False) elif self.layout_type == 'GRID': layout.alignment = 'CENTER' |