Brushstroke Tools: Initial Version #328

Merged
Simon Thommes merged 229 commits from SimonThommes/blender-studio-tools:brushstroke_tools-initial-version into main 2024-11-06 15:03:47 +01:00
3 changed files with 3 additions and 3 deletions
Showing only changes of commit a8d42ef776 - Show all commits

View File

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

View File

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