diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2020-03-20 17:37:56 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2020-03-21 11:48:18 +0300 |
commit | d924e31b421a51fed343fbd2a17291cfd289d9bc (patch) | |
tree | 674c93c2d214c027ebc1573858d673682533c746 /release/scripts | |
parent | a22cd6b6a95138d73e9e23f7ac0d40de17a5a25f (diff) |
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
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_data_modifier.py | 21 |
1 files changed, 13 insertions, 8 deletions
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() |