Brushstroke Tools: Initial Version #328
Binary file not shown.
@ -772,10 +772,10 @@ class BSBST_OT_init_preset(bpy.types.Operator):
|
|||||||
self.init_draw(context)
|
self.init_draw(context)
|
||||||
|
|
||||||
# select preset material
|
# select preset material
|
||||||
mat = bpy.data.materials.get('Brushstrokes')
|
mat = bpy.data.materials.get('Brush Material')
|
||||||
if not mat:
|
if not mat:
|
||||||
mat = utils.import_brushstroke_material()
|
mat = utils.import_brushstroke_material()
|
||||||
settings.context_material = bpy.data.materials['Brushstrokes']
|
settings.context_material = bpy.data.materials['Brush Material']
|
||||||
preset_object['BSBST_material'] = settings.context_material
|
preset_object['BSBST_material'] = settings.context_material
|
||||||
|
|
||||||
return {"FINISHED"}
|
return {"FINISHED"}
|
||||||
|
@ -263,7 +263,7 @@ def compare_versions(v1: tuple, v2: tuple):
|
|||||||
return 0
|
return 0
|
||||||
|
|
||||||
def import_brushstroke_material():
|
def import_brushstroke_material():
|
||||||
name = 'Brushstrokes'
|
name = 'Brush Material'
|
||||||
path = f"{get_resource_directory()}/brushstroke_tools-resources.blend"
|
path = f"{get_resource_directory()}/brushstroke_tools-resources.blend"
|
||||||
addon_prefs = bpy.context.preferences.addons[__package__].preferences
|
addon_prefs = bpy.context.preferences.addons[__package__].preferences
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user