GP: Add popover for Sculpt and Weight Paint panels

This commit is contained in:
Antonioya 2018-09-25 15:38:56 +02:00
parent 3816592fc6
commit e61861e393
2 changed files with 5 additions and 1 deletions

@ -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

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