diff options
author | Antonioya <blendergit@gmail.com> | 2018-11-03 10:46:21 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2018-11-03 10:51:36 +0300 |
commit | 628908a710a2f7a4b4900bc93b0b3c445a4ed0ad (patch) | |
tree | e6da88db5480840f2c2950f6c0c65c8b03f4a17e /release/scripts | |
parent | c48ca87bcee01333f1d1816a0273521a7cb40964 (diff) |
GP: New main switches to hide stroke and fill material
New parameters to switch visibility of stroke and fill
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_material_gpencil.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/properties_material_gpencil.py b/release/scripts/startup/bl_ui/properties_material_gpencil.py index 5fb9d9795e3..a3fdd37e029 100644 --- a/release/scripts/startup/bl_ui/properties_material_gpencil.py +++ b/release/scripts/startup/bl_ui/properties_material_gpencil.py @@ -179,6 +179,12 @@ class MATERIAL_PT_gpencil_strokecolor(GPMaterialButtonsPanel, Panel): bl_label = "Stroke" bl_parent_id = 'MATERIAL_PT_gpencil_surface' + def draw_header(self, context): + ma = context.object.active_material + if ma is not None and ma.grease_pencil is not None: + gpcolor = ma.grease_pencil + self.layout.prop(gpcolor, "show_stroke", text="") + @staticmethod def draw(self, context): layout = self.layout @@ -211,6 +217,12 @@ class MATERIAL_PT_gpencil_fillcolor(GPMaterialButtonsPanel, Panel): bl_label = "Fill" bl_parent_id = 'MATERIAL_PT_gpencil_surface' + def draw_header(self, context): + ma = context.object.active_material + if ma is not None and ma.grease_pencil is not None: + gpcolor = ma.grease_pencil + self.layout.prop(gpcolor, "show_fill", text="") + @staticmethod def draw(self, context): layout = self.layout |