[Bf-blender-cvs] [7347252f0f7] master: Cleanup: remove unnecessary icon assignment

Campbell Barton noreply at git.blender.org
Fri Aug 12 03:07:18 CEST 2022


Commit: 7347252f0f7b79fdbcb253c64ae7430bff8b59aa
Author: Campbell Barton
Date:   Fri Aug 12 11:05:45 2022 +1000
Branches: master
https://developer.blender.org/rB7347252f0f7b79fdbcb253c64ae7430bff8b59aa

Cleanup: remove unnecessary icon assignment

===================================================================

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 44d82be8ab0..38522a1bf84 100644
--- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
+++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
@@ -355,8 +355,7 @@ class GPENCIL_UL_annotation_layer(UIList):
 
             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, "show_in_front", text="", icon='XRAY' if gpl.show_in_front else 'FACESEL', emboss=False)
 
             row.prop(gpl, "annotation_hide", text="", emboss=False)
         elif self.layout_type == 'GRID':



More information about the Bf-blender-cvs mailing list