Brushstroke Tools: Initial Version #328
@ -266,13 +266,14 @@ class BSBST_PT_brushstroke_tools_panel(bpy.types.Panel):
|
|||||||
row.label(text='', icon='GEOMETRY_NODES')
|
row.label(text='', icon='GEOMETRY_NODES')
|
||||||
row.prop(mod, 'name', text='', emboss=False)
|
row.prop(mod, 'name', text='', emboss=False)
|
||||||
|
|
||||||
if is_preset:
|
|
||||||
op = row.operator('brushstroke_tools.preset_remove_mod', text='', icon='X')
|
|
||||||
else:
|
|
||||||
op = row.operator('object.modifier_remove', text='', icon='X')
|
|
||||||
op.modifier = mod.name
|
|
||||||
if display_mode != 0:
|
if display_mode != 0:
|
||||||
mod_header.prop(mod_info, 'hide_ui', icon_only=True, icon='UNPINNED' if mod_info.hide_ui else 'PINNED', emboss=False)
|
mod_header.prop(mod_info, 'hide_ui', icon_only=True, icon='UNPINNED' if mod_info.hide_ui else 'PINNED', emboss=False)
|
||||||
|
if is_preset:
|
||||||
|
op = row.operator('brushstroke_tools.preset_remove_mod', text='', icon='X')
|
||||||
|
else:
|
||||||
|
op = row.operator('object.modifier_remove', text='', icon='X')
|
||||||
|
# TODO Implement operator to remove modifier on brushstroke object, even when not active
|
||||||
|
op.modifier = mod.name
|
||||||
|
|
||||||
if not mod_panel:
|
if not mod_panel:
|
||||||
continue
|
continue
|
||||||
@ -296,8 +297,6 @@ class BSBST_PT_brushstroke_tools_panel(bpy.types.Panel):
|
|||||||
# expose add modifier operator for preset context
|
# expose add modifier operator for preset context
|
||||||
if is_preset:
|
if is_preset:
|
||||||
style_panel.operator('brushstroke_tools.preset_add_mod', icon='ADD')
|
style_panel.operator('brushstroke_tools.preset_add_mod', icon='ADD')
|
||||||
else:
|
|
||||||
style_panel.operator('object.modifier_add', text='Add Modifier', icon='ADD')
|
|
||||||
|
|
||||||
class BSBST_MT_PIE_brushstroke_data_marking(bpy.types.Menu):
|
class BSBST_MT_PIE_brushstroke_data_marking(bpy.types.Menu):
|
||||||
bl_idname= "BSBST_MT_PIE_brushstroke_data_marking"
|
bl_idname= "BSBST_MT_PIE_brushstroke_data_marking"
|
||||||
|
Loading…
Reference in New Issue
Block a user