Brushstroke Tools: Initial Version #328
@ -83,7 +83,7 @@ def draw_panel_ui_recursive(panel, panel_name, mod, items, display_mode, hide_pa
|
|||||||
col = row.column()
|
col = row.column()
|
||||||
input_row = col.row(align=True)
|
input_row = col.row(align=True)
|
||||||
attribute_toggle = False
|
attribute_toggle = False
|
||||||
if f'{v.identifier}_use_attribute' in mod.keys():
|
if f'{v.identifier}_use_attribute' in mod.keys() and not v.force_non_field:
|
||||||
attribute_toggle = mod[f'{v.identifier}_use_attribute']
|
attribute_toggle = mod[f'{v.identifier}_use_attribute']
|
||||||
if attribute_toggle:
|
if attribute_toggle:
|
||||||
input_row.prop(mod, f'["{v.identifier}_attribute_name"]', text=k)
|
input_row.prop(mod, f'["{v.identifier}_attribute_name"]', text=k)
|
||||||
@ -215,6 +215,7 @@ def draw_material_settings(layout, material, surface_object=None):
|
|||||||
if settings.preview_texture:
|
if settings.preview_texture:
|
||||||
row = brush_panel.row(align=True)
|
row = brush_panel.row(align=True)
|
||||||
row.template_preview(settings.preview_texture, show_buttons=False, preview_id='brushstroke_preview') # TODO: Figure out how to redraw the preview on style change
|
row.template_preview(settings.preview_texture, show_buttons=False, preview_id='brushstroke_preview') # TODO: Figure out how to redraw the preview on style change
|
||||||
|
brush_panel.prop(settings.preview_texture, 'use_flip_axis')
|
||||||
|
|
||||||
row = brush_panel.row(align=True)
|
row = brush_panel.row(align=True)
|
||||||
row.prop_search(material, 'brush_style', addon_prefs, 'brush_styles', text='', icon='BRUSHES_ALL')
|
row.prop_search(material, 'brush_style', addon_prefs, 'brush_styles', text='', icon='BRUSHES_ALL')
|
||||||
|
Loading…
Reference in New Issue
Block a user