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
Showing only changes of commit 6914076f9c - Show all commits

View File

@ -192,6 +192,16 @@ class BSBST_UL_brushstroke_objects(bpy.types.UIList):
def draw_filter(self, context, layout):
return
class BSBST_MT_bs_context_menu(bpy.types.Menu):
bl_label = "Brushstroke Specials"
def draw(self, _context):
layout = self.layout
layout.operator('brushstroke_tools.copy_brushstrokes', text='Copy to Selected Objects')
op = layout.operator('brushstroke_tools.copy_brushstrokes', text='Copy All to Selected Objects')
op.copy_all = True
class BSBST_PT_brushstroke_tools_panel(bpy.types.Panel):
bl_space_type = 'VIEW_3D'
bl_region_type = 'UI'
@ -282,10 +292,7 @@ class BSBST_PT_brushstroke_tools_panel(bpy.types.Panel):
column = row.column(align=True)
column.operator('brushstroke_tools.delete_brushstrokes', text='', icon='TRASH')
column.operator('brushstroke_tools.duplicate_brushstrokes', text='', icon='DUPLICATE')
column.operator('brushstroke_tools.copy_brushstrokes', text='', icon='DUPLICATE')
op = column.operator('brushstroke_tools.copy_brushstrokes', text='', icon='DUPLICATE')
op.copy_all = True
# TODO make nice
column.menu('BSBST_MT_bs_context_menu', text='', icon = 'DOWNARROW_HLT')
row = style_panel.row()
row_edit = row.row(align=True)
@ -397,6 +404,7 @@ class BSBST_OT_brushstroke_data_marking(bpy.types.Operator):
classes = [
BSBST_UL_brushstroke_objects,
BSBST_MT_bs_context_menu,
BSBST_PT_brushstroke_tools_panel,
BSBST_MT_PIE_brushstroke_data_marking,
BSBST_OT_brushstroke_data_marking,