GP: Add popover for Sculpt and Weight Paint panels

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

View File

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