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-21 23:50:02 +0300
committerAntonioya <blendergit@gmail.com>2018-09-21 23:50:20 +0300
commit664865680a6356da3860821f27dcbab702f00863 (patch)
tree21b85778c4f170558a437b1a9b44a69d455da7d4 /release
parent502dbcf4041843ac06f4ce689b5a061753a25566 (diff)
GP: More changes to sculpt panels and topbar
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/properties_grease_pencil_common.py1
-rw-r--r--release/scripts/startup/bl_ui/space_toolsystem_toolbar.py6
2 files changed, 6 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 3020f71d1e7..e7521f8b3d0 100644
--- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
+++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
@@ -265,7 +265,6 @@ class GreasePencilStrokeSculptPanel:
col.row().prop(brush, "direction", expand=True)
-
class GreasePencilSculptOptionsPanel:
bl_label = "Sculpt Strokes"
diff --git a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
index d249a9aa966..994e3e990bf 100644
--- a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
@@ -1392,6 +1392,7 @@ class _defs_gpencil_sculpt:
if ob and ob.mode == 'GPENCIL_SCULPT':
ts = context.tool_settings
settings = ts.gpencil_sculpt
+ tool = settings.tool
brush = settings.brush
layout.prop(brush, "size", slider=True)
@@ -1399,6 +1400,11 @@ class _defs_gpencil_sculpt:
row = layout.row(align=True)
row.prop(brush, "strength", slider=True)
row.prop(brush, "use_pressure_strength", text="")
+
+ if tool in {'THICKNESS', 'PINCH', 'TWIST'}:
+ row.separator()
+ row.prop(brush, "direction", expand=True, text="")
+
row.separator()
row.prop(ts.gpencil_sculpt, "use_select_mask", text="")