From d924e31b421a51fed343fbd2a17291cfd289d9bc Mon Sep 17 00:00:00 2001 From: Antonio Vazquez Date: Fri, 20 Mar 2020 15:37:56 +0100 Subject: GPencil: New Hardeness mode for Opacity modifier Add new option to change the stroke hardeness. This option works at stroke level, not at point level. Also replaced the "Both" name mode by "Stroke and Fill". Differential Revision: https://developer.blender.org/D7195 --- .../startup/bl_ui/properties_data_modifier.py | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'release/scripts/startup/bl_ui/properties_data_modifier.py') diff --git a/release/scripts/startup/bl_ui/properties_data_modifier.py b/release/scripts/startup/bl_ui/properties_data_modifier.py index 7508b0e2321..277791a9f53 100644 --- a/release/scripts/startup/bl_ui/properties_data_modifier.py +++ b/release/scripts/startup/bl_ui/properties_data_modifier.py @@ -1996,16 +1996,21 @@ class DATA_PT_gpencil_modifiers(ModifierButtonsPanel, Panel): split = layout.split() col = split.column() - col.prop(md, "normalize_opacity") - if md.normalize_opacity is True: - text="Strength" - else: - text="Opacity Factor" - - col.prop(md, "factor", text=text) col.prop(md, "modify_color") - self.gpencil_masking(layout, ob, md, True, True) + if md.modify_color == 'HARDENESS': + col.prop(md, "hardeness") + show = False + else: + col.prop(md, "normalize_opacity") + if md.normalize_opacity is True: + text="Strength" + else: + text="Opacity Factor" + + col.prop(md, "factor", text=text) + show = True + self.gpencil_masking(layout, ob, md, show, show) def GP_ARRAY(self, layout, ob, md): col = layout.column() -- cgit v1.2.3