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:
authorPhilipp Oeser <info@graphics-engineer.com>2021-06-04 13:17:02 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2021-06-04 13:17:33 +0300
commit9ba6b64efa3acb941dee58207489bc593449f133 (patch)
tree61236f30f216bdf1caa03b16490b6107c6990793
parente4ca6b93ad11188193f9a520db92958aaf0deb75 (diff)
Greasepencil: show pressure curve widgets in the sidebar
These were only showing in the Properties Editor, but there is no reason to have the panels be different in the sidebar (they should not show in the top bar though). agreed upon by both @anoniov and @mendio ref T88787
-rw-r--r--release/scripts/startup/bl_ui/properties_paint_common.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/properties_paint_common.py b/release/scripts/startup/bl_ui/properties_paint_common.py
index f3462dfb35d..4bfd2fd32b0 100644
--- a/release/scripts/startup/bl_ui/properties_paint_common.py
+++ b/release/scripts/startup/bl_ui/properties_paint_common.py
@@ -1235,7 +1235,7 @@ def brush_basic_gpencil_paint_settings(layout, context, brush, *, compact=False)
row.prop(brush, "size", text="Radius")
row.prop(gp_settings, "use_pressure", text="", icon='STYLUS_PRESSURE')
- if gp_settings.use_pressure and context.area.type == 'PROPERTIES':
+ if gp_settings.use_pressure and not compact:
col = layout.column()
col.template_curve_mapping(gp_settings, "curve_sensitivity", brush=True,
use_negative_slope=True)
@@ -1244,7 +1244,7 @@ def brush_basic_gpencil_paint_settings(layout, context, brush, *, compact=False)
row.prop(gp_settings, "pen_strength", slider=True)
row.prop(gp_settings, "use_strength_pressure", text="", icon='STYLUS_PRESSURE')
- if gp_settings.use_strength_pressure and context.area.type == 'PROPERTIES':
+ if gp_settings.use_strength_pressure and not compact:
col = layout.column()
col.template_curve_mapping(gp_settings, "curve_strength", brush=True,
use_negative_slope=True)