diff options
author | Joshua Leung <aligorith@gmail.com> | 2015-12-15 16:57:06 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2015-12-15 16:59:24 +0300 |
commit | c5e99abe70b5059adc6636313f0cedca2d77be7e (patch) | |
tree | a285c83c9c7e7c4b05991ddb6f35c41fbe7d6e62 /release | |
parent | 2339a84443c07011acded1968a73b311b277101a (diff) |
Temporary solution for Add/Subtract toggles being meaningless for some GPencil brushes
For now, we just change the labels of these toggles so that it makes sense what
results we should expect from each. A better solution may be to create separate
"direction" props for the different brush types here, so that we can also define
more appropriate tooltips too to go with the labels.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_grease_pencil_common.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py index 9bb31a2b438..56373c75520 100644 --- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py +++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py @@ -208,8 +208,16 @@ class GreasePencilStrokeSculptPanel: layout.separator() - if settings.tool in {'THICKNESS', 'PINCH', 'TWIST'}: + if settings.tool == 'THICKNESS': layout.row().prop(brush, "direction", expand=True) + elif settings.tool == 'PINCH': + row = layout.row(align=True) + row.prop_enum(brush, "direction", 'ADD', text="Pinch") + row.prop_enum(brush, "direction", 'SUBTRACT', text="Inflate") + elif settings.tool == 'TWIST': + row = layout.row(align=True) + row.prop_enum(brush, "direction", 'SUBTRACT', text="CW") + row.prop_enum(brush, "direction", 'ADD', text="CCW") layout.separator() layout.prop(settings, "use_select_mask") |