From e61861e393b28b4db2ea0877509abdcf44edb283 Mon Sep 17 00:00:00 2001 From: Antonioya Date: Tue, 25 Sep 2018 15:38:56 +0200 Subject: [PATCH] GP: Add popover for Sculpt and Weight Paint panels --- release/scripts/startup/bl_ui/space_topbar.py | 4 ++++ release/scripts/startup/bl_ui/space_view3d_toolbar.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/release/scripts/startup/bl_ui/space_topbar.py b/release/scripts/startup/bl_ui/space_topbar.py index 3e121ddd8b7..b786201b5b3 100644 --- a/release/scripts/startup/bl_ui/space_topbar.py +++ b/release/scripts/startup/bl_ui/space_topbar.py @@ -139,6 +139,10 @@ class TOPBAR_HT_lower_bar(Header): pass elif mode == 'GPENCIL_PAINT': layout.popover_group(space_type='PROPERTIES', region_type='WINDOW', context=".greasepencil_paint", category="") + elif mode == 'GPENCIL_SCULPT': + layout.popover_group(space_type='PROPERTIES', region_type='WINDOW', context=".greasepencil_sculpt", category="") + elif mode == 'GPENCIL_WEIGHT': + layout.popover_group(space_type='PROPERTIES', region_type='WINDOW', context=".greasepencil_weight", category="") def draw_center(self, context): pass diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py index 2e197b4ec5b..35a39361488 100644 --- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py +++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py @@ -1711,7 +1711,7 @@ class VIEW3D_PT_tools_grease_pencil_sculpt(GreasePencilStrokeSculptPanel, View3D class VIEW3D_PT_tools_grease_pencil_weight_paint(View3DPanel, Panel): bl_context = ".greasepencil_weight" bl_category = "Tools" - bl_label = "Weight Paint" + bl_label = "Brush" @staticmethod def draw(self, context):