From 98ff6cfa575bbe9680e5a0abf176a9d748ecc2b8 Mon Sep 17 00:00:00 2001 From: Antonio Vazquez Date: Wed, 4 Dec 2019 14:13:21 +0100 Subject: GPencil: Add Opacity y Onion switch to Dopesheet Add new icons and panels Grease Pencil Dopesheet to manage layers without having the properties panel visible. Also, the icons are in the same order in Dopesheet, Layers and Material list to keep consistency. As the number of columns for icons is limited to 3 and we also need use a factor, I have impleted the change using slider area. Also, the slider option is enabled by default for 2D Template. See T72026 for more info. Reviewed By: mendio, pepeland, billreynish Differential Revision: https://developer.blender.org/D6328 --- release/scripts/startup/bl_ui/properties_material_gpencil.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'release/scripts/startup/bl_ui/properties_material_gpencil.py') diff --git a/release/scripts/startup/bl_ui/properties_material_gpencil.py b/release/scripts/startup/bl_ui/properties_material_gpencil.py index 8ce97a88e35..4f419ec1f18 100644 --- a/release/scripts/startup/bl_ui/properties_material_gpencil.py +++ b/release/scripts/startup/bl_ui/properties_material_gpencil.py @@ -65,13 +65,13 @@ class GPENCIL_UL_matslots(UIList): row.prop(ma, "name", text="", emboss=False, icon_value=icon) row = layout.row(align=True) - row.prop(gpcolor, "lock", text="", emboss=False) - row.prop(gpcolor, "hide", text="", emboss=False) if gpcolor.ghost is True: icon = 'ONIONSKIN_OFF' else: icon = 'ONIONSKIN_ON' row.prop(gpcolor, "ghost", text="", icon=icon, emboss=False) + row.prop(gpcolor, "hide", text="", emboss=False) + row.prop(gpcolor, "lock", text="", emboss=False) elif self.layout_type == 'GRID': layout.alignment = 'CENTER' -- cgit v1.2.3