fix load brush import helper destination
parent
4a4d72b410
commit
f599964296
|
@ -51,12 +51,14 @@ class GPTB_OT_load_brushes(bpy.types.Operator, ImportHelper):
|
||||||
### -- MENU ENTRY --
|
### -- MENU ENTRY --
|
||||||
|
|
||||||
def load_brush_ui(self, context):
|
def load_brush_ui(self, context):
|
||||||
|
prefs = get_addon_prefs()
|
||||||
if context.mode == 'PAINT_GPENCIL':
|
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):
|
def load_brush_top_bar_ui(self, context):
|
||||||
|
prefs = get_addon_prefs()
|
||||||
if context.mode == 'PAINT_GPENCIL':
|
if context.mode == 'PAINT_GPENCIL':
|
||||||
self.layout.operator('gp.load_brushes')
|
self.layout.operator('gp.load_brushes').filepath = prefs.brush_path
|
||||||
|
|
||||||
classes = (
|
classes = (
|
||||||
GPTB_OT_load_brushes,
|
GPTB_OT_load_brushes,
|
||||||
|
|
Loading…
Reference in New Issue