diff --git a/OP_brushes.py b/OP_brushes.py index 72e8809..1bfc6b7 100644 --- a/OP_brushes.py +++ b/OP_brushes.py @@ -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,