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:
authorLictex Steaven <lictex_>2022-03-26 20:25:53 +0300
committerAntonio Vazquez <blendergit@gmail.com>2022-03-26 20:26:43 +0300
commit08d2428632ede37e0c42a963665b1d5d1075e542 (patch)
treef5f135d2c855d4c38346d4d47f47863e73505e47 /release/scripts/startup
parent082b063f2aefdfaadca8b2f33b505b956959195f (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
Diffstat (limited to 'release/scripts/startup')
-rw-r--r--release/scripts/startup/bl_ui/properties_grease_pencil_common.py4
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'