[Bf-blender-cvs] [08d2428632e] master: GPencil: Add an xray toggle for each annotation layer
Lictex Steaven
noreply at git.blender.org
Sat Mar 26 18:26:51 CET 2022
Commit: 08d2428632ede37e0c42a963665b1d5d1075e542
Author: Lictex Steaven
Date: Sat Mar 26 18:25:53 2022 +0100
Branches: master
https://developer.blender.org/rB08d2428632ede37e0c42a963665b1d5d1075e542
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
===================================================================
M release/scripts/startup/bl_ui/properties_grease_pencil_common.py
===================================================================
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'
More information about the Bf-blender-cvs
mailing list