diff options
author | Antonioya <blendergit@gmail.com> | 2018-11-20 20:11:42 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2018-11-20 20:12:04 +0300 |
commit | ec908beab321853e7d018d1d0b1450f4aef89a51 (patch) | |
tree | 5e51d299dc85e084855fc789dfae0376d6babd91 /release/scripts/startup/bl_ui/space_topbar.py | |
parent | 53d9ddf772be064bcde132b1f79ed2239f74b741 (diff) |
GP: New option to paint a predefined weight
Enabling this option, the weight is set to the predefined value and not the result of the sum of the paint actions.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_topbar.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_topbar.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/space_topbar.py b/release/scripts/startup/bl_ui/space_topbar.py index 6fffba1fe39..a145ec5114e 100644 --- a/release/scripts/startup/bl_ui/space_topbar.py +++ b/release/scripts/startup/bl_ui/space_topbar.py @@ -405,8 +405,15 @@ class _draw_left_context_mode: layout.prop(brush, "size", slider=True) row = layout.row(align=True) - row.prop(brush, "strength", slider=True) - row.prop(brush, "use_pressure_strength", text="") + row.prop(settings, "use_fix_weight", text="", icon='WPAINT_HLT') + if settings.use_fix_weight is False: + row.prop(brush, "strength", slider=True) + else: + row.prop(brush, "strength", text="Weight", slider=True) + + sub = row.row(align=True) + sub.enabled = not settings.use_fix_weight + sub.prop(brush, "use_pressure_strength", text="") @staticmethod def PARTICLE(context, layout, tool): |