Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonioya <blendergit@gmail.com>2018-09-22 17:26:52 +0300
committerAntonioya <blendergit@gmail.com>2018-09-22 17:27:04 +0300
commitb350b194eb2dc49acdc15acfe2ea15dd53baf25b (patch)
treeb6b79985eb31296a5887a8afc0cfac2e577606af /release
parent38402e7fdd34111a6c22734b112617d7373293df (diff)
GP: Change direction text depending of sculpt brush
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/properties_grease_pencil_common.py15
1 files changed, 11 insertions, 4 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 29f61ff0aae..760c5f8e259 100644
--- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
+++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
@@ -259,10 +259,17 @@ class GreasePencilStrokeSculptPanel:
layout.prop(brush, "use_falloff")
- if tool in {'THICKNESS', 'STRENGTH', 'PINCH', 'TWIST'}:
- col = layout.column()
- col.separator()
- col.row().prop(brush, "direction", expand=True)
+ layout.use_property_split = False
+ if tool in {'THICKNESS', 'STRENGTH'}:
+ layout.row().prop(brush, "direction", expand=True)
+ elif tool == 'PINCH':
+ row = layout.row(align=True)
+ row.prop_enum(brush, "direction", value='ADD', text="Pinch")
+ row.prop_enum(brush, "direction", value='SUBTRACT', text="Inflate")
+ elif settings.tool == 'TWIST':
+ row = layout.row(align=True)
+ row.prop_enum(brush, "direction", value='ADD', text="CCW")
+ row.prop_enum(brush, "direction", value='SUBTRACT', text="CW")
class GreasePencilSculptOptionsPanel: