fix load brush import helper destination

gpv2
Pullusb 2021-06-23 17:25:45 +02:00
parent 4a4d72b410
commit f599964296
1 changed files with 4 additions and 2 deletions

View File

@ -51,12 +51,14 @@ class GPTB_OT_load_brushes(bpy.types.Operator, ImportHelper):
### -- MENU ENTRY --
def load_brush_ui(self, context):
prefs = get_addon_prefs()
if context.mode == 'PAINT_GPENCIL':
self.layout.operator('gp.load_brushes', icon='SMALL_TRI_RIGHT_VEC') # KEYTYPE_JITTER_VEC
self.layout.operator('gp.load_brushes', icon='SMALL_TRI_RIGHT_VEC').filepath = prefs.brush_path # KEYTYPE_JITTER_VEC
def load_brush_top_bar_ui(self, context):
prefs = get_addon_prefs()
if context.mode == 'PAINT_GPENCIL':
self.layout.operator('gp.load_brushes')
self.layout.operator('gp.load_brushes').filepath = prefs.brush_path
classes = (
GPTB_OT_load_brushes,