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.
This commit is contained in:
Joshua Leung
2015-12-16 02:57:06 +13:00
parent 2339a84443
commit c5e99abe70

View File

@@ -208,8 +208,16 @@ class GreasePencilStrokeSculptPanel:
layout.separator() layout.separator()
if settings.tool in {'THICKNESS', 'PINCH', 'TWIST'}: if settings.tool == 'THICKNESS':
layout.row().prop(brush, "direction", expand=True) 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.separator()
layout.prop(settings, "use_select_mask") layout.prop(settings, "use_select_mask")