[Bf-blender-cvs] [e61861e393b] blender2.8: GP: Add popover for Sculpt and Weight Paint panels

Antonioya noreply at git.blender.org
Tue Sep 25 15:39:21 CEST 2018


Commit: e61861e393b28b4db2ea0877509abdcf44edb283
Author: Antonioya
Date:   Tue Sep 25 15:38:56 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBe61861e393b28b4db2ea0877509abdcf44edb283

GP: Add popover for Sculpt and Weight Paint panels

===================================================================

M	release/scripts/startup/bl_ui/space_topbar.py
M	release/scripts/startup/bl_ui/space_view3d_toolbar.py

===================================================================

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):



More information about the Bf-blender-cvs mailing list