diff options
author | William Reynish <billreynish> | 2018-11-09 20:03:34 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-11-09 20:06:25 +0300 |
commit | 89a66633f1d039b2adf11de320812f8524d246a7 (patch) | |
tree | fc3425fd20796cf46464d1ee56549a8823d40ed2 /release/scripts/startup/bl_ui/space_view3d_toolbar.py | |
parent | 8aa17c5b12d734332c0af62a110524c4e523fb64 (diff) |
UI: split grease pencil brush curves into subpanels.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_view3d_toolbar.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d_toolbar.py | 45 |
1 files changed, 41 insertions, 4 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py index 07ebfb36f7d..9ac1023185a 100644 --- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py +++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py @@ -1695,19 +1695,53 @@ class VIEW3D_PT_tools_grease_pencil_brushcurves(View3DPanel, Panel): @staticmethod def draw(self, context): layout = self.layout + + +class VIEW3D_PT_tools_grease_pencil_brushcurves_sensitivity(View3DPanel, Panel): + bl_context = ".greasepencil_paint" + bl_label = "Sensitivity" + bl_parent_id ="VIEW3D_PT_tools_grease_pencil_brushcurves" + + @staticmethod + def draw(self, context): + layout = self.layout layout.use_property_split = True brush = context.active_gpencil_brush gp_settings = brush.gpencil_settings - # Brush - layout.label(text="Sensitivity") layout.template_curve_mapping(gp_settings, "curve_sensitivity", brush=True) - layout.label(text="Strength") + +class VIEW3D_PT_tools_grease_pencil_brushcurves_strength(View3DPanel, Panel): + bl_context = ".greasepencil_paint" + bl_label = "Strength" + bl_parent_id ="VIEW3D_PT_tools_grease_pencil_brushcurves" + + @staticmethod + def draw(self, context): + layout = self.layout + layout.use_property_split = True + + brush = context.active_gpencil_brush + gp_settings = brush.gpencil_settings + layout.template_curve_mapping(gp_settings, "curve_strength", brush=True) - layout.label(text="Jitter") + +class VIEW3D_PT_tools_grease_pencil_brushcurves_jitter(View3DPanel, Panel): + bl_context = ".greasepencil_paint" + bl_label = "Jitter" + bl_parent_id ="VIEW3D_PT_tools_grease_pencil_brushcurves" + + @staticmethod + def draw(self, context): + layout = self.layout + layout.use_property_split = True + + brush = context.active_gpencil_brush + gp_settings = brush.gpencil_settings + layout.template_curve_mapping(gp_settings, "curve_jitter", brush=True) @@ -1894,6 +1928,9 @@ classes = ( VIEW3D_PT_tools_grease_pencil_brush_stabilizer, VIEW3D_PT_tools_grease_pencil_brush_random, VIEW3D_PT_tools_grease_pencil_brushcurves, + VIEW3D_PT_tools_grease_pencil_brushcurves_sensitivity, + VIEW3D_PT_tools_grease_pencil_brushcurves_strength, + VIEW3D_PT_tools_grease_pencil_brushcurves_jitter, VIEW3D_PT_tools_grease_pencil_shapes, VIEW3D_PT_tools_grease_pencil_sculpt, VIEW3D_PT_tools_grease_pencil_weight_paint, |