From c5e99abe70b5059adc6636313f0cedca2d77be7e Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Wed, 16 Dec 2015 02:57:06 +1300 Subject: 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. --- .../scripts/startup/bl_ui/properties_grease_pencil_common.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'release') 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") -- cgit v1.2.3