Brushstroke Tools: Initial Version #328
@ -192,6 +192,16 @@ class BSBST_UL_brushstroke_objects(bpy.types.UIList):
|
|||||||
def draw_filter(self, context, layout):
|
def draw_filter(self, context, layout):
|
||||||
return
|
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):
|
class BSBST_PT_brushstroke_tools_panel(bpy.types.Panel):
|
||||||
bl_space_type = 'VIEW_3D'
|
bl_space_type = 'VIEW_3D'
|
||||||
bl_region_type = 'UI'
|
bl_region_type = 'UI'
|
||||||
@ -282,10 +292,7 @@ class BSBST_PT_brushstroke_tools_panel(bpy.types.Panel):
|
|||||||
column = row.column(align=True)
|
column = row.column(align=True)
|
||||||
column.operator('brushstroke_tools.delete_brushstrokes', text='', icon='TRASH')
|
column.operator('brushstroke_tools.delete_brushstrokes', text='', icon='TRASH')
|
||||||
column.operator('brushstroke_tools.duplicate_brushstrokes', text='', icon='DUPLICATE')
|
column.operator('brushstroke_tools.duplicate_brushstrokes', text='', icon='DUPLICATE')
|
||||||
column.operator('brushstroke_tools.copy_brushstrokes', text='', icon='DUPLICATE')
|
column.menu('BSBST_MT_bs_context_menu', text='', icon = 'DOWNARROW_HLT')
|
||||||
op = column.operator('brushstroke_tools.copy_brushstrokes', text='', icon='DUPLICATE')
|
|
||||||
op.copy_all = True
|
|
||||||
# TODO make nice
|
|
||||||
|
|
||||||
row = style_panel.row()
|
row = style_panel.row()
|
||||||
row_edit = row.row(align=True)
|
row_edit = row.row(align=True)
|
||||||
@ -397,6 +404,7 @@ class BSBST_OT_brushstroke_data_marking(bpy.types.Operator):
|
|||||||
|
|
||||||
classes = [
|
classes = [
|
||||||
BSBST_UL_brushstroke_objects,
|
BSBST_UL_brushstroke_objects,
|
||||||
|
BSBST_MT_bs_context_menu,
|
||||||
BSBST_PT_brushstroke_tools_panel,
|
BSBST_PT_brushstroke_tools_panel,
|
||||||
BSBST_MT_PIE_brushstroke_data_marking,
|
BSBST_MT_PIE_brushstroke_data_marking,
|
||||||
BSBST_OT_brushstroke_data_marking,
|
BSBST_OT_brushstroke_data_marking,
|
||||||
|
Loading…
Reference in New Issue
Block a user