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
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 76cbc59e55 - Show all commits

View File

@ -152,7 +152,7 @@ class BSBST_context_brushstrokes(bpy.types.PropertyGroup):
class BSBST_Settings(bpy.types.PropertyGroup): class BSBST_Settings(bpy.types.PropertyGroup):
attach_to_active_selection: bpy.props.BoolProperty(default=True) attach_to_active_selection: bpy.props.BoolProperty(default=True)
preset_object: bpy.props.PointerProperty(type=bpy.types.Object, name="Preset Object") preset_object: bpy.props.PointerProperty(type=bpy.types.Object, name="Default/Preset Object")
preset_material: bpy.props.PointerProperty(type=bpy.types.Material, name="Preset Material") preset_material: bpy.props.PointerProperty(type=bpy.types.Material, name="Preset Material")
assign_materials: bpy.props.BoolProperty(name='Assign Modifier Materials', default=True) assign_materials: bpy.props.BoolProperty(name='Assign Modifier Materials', default=True)
brushstroke_method: bpy.props.EnumProperty(default='SURFACE_FILL', update=update_brushstroke_method, brushstroke_method: bpy.props.EnumProperty(default='SURFACE_FILL', update=update_brushstroke_method,
@ -162,7 +162,7 @@ class BSBST_Settings(bpy.types.PropertyGroup):
style_context: bpy.props.EnumProperty(default='AUTO', style_context: bpy.props.EnumProperty(default='AUTO',
name='Context', name='Context',
items= [ items= [
('PRESET', 'Preset', 'Specify the style of the current preset used for new brushstrokes', 'SETTINGS', 0),\ ('PRESET', 'Default', 'Specify the style of the current default used for new brushstrokes', 'SETTINGS', 0),\
('BRUSHSTROKES', 'Brushstrokes', 'Specify the style of the currently active brushstrokes', 'BRUSH_DATA', 1), ('BRUSHSTROKES', 'Brushstrokes', 'Specify the style of the currently active brushstrokes', 'BRUSH_DATA', 1),
('AUTO', 'Auto', 'Specify the style of either the active brushstrokes or the preset depending on the context', 'AUTO', 2), ('AUTO', 'Auto', 'Specify the style of either the active brushstrokes or the preset depending on the context', 'AUTO', 2),
]) ])

View File

@ -195,7 +195,7 @@ class BSBST_PT_brushstroke_tools_panel(bpy.types.Panel):
style_header, style_panel = layout.panel("brushstrokes_style", default_closed=False) style_header, style_panel = layout.panel("brushstrokes_style", default_closed=False)
if is_preset: if is_preset:
style_header.label(text="Preset Settings", icon='SETTINGS') style_header.label(text="Default Settings", icon='SETTINGS')
else: else:
style_header.label(text="Brushstroke Settings", icon='BRUSH_DATA') style_header.label(text="Brushstroke Settings", icon='BRUSH_DATA')
style_header.operator('brushstroke_tools.make_preset', text='', icon='DECORATE_OVERRIDE') style_header.operator('brushstroke_tools.make_preset', text='', icon='DECORATE_OVERRIDE')