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 30ac4ba9e7 - Show all commits

View File

@ -115,7 +115,14 @@ class BSBST_UL_brushstroke_objects(bpy.types.UIList):
if context_brushstroke: if context_brushstroke:
method_icon = 'BRUSH_DATA' method_icon = 'BRUSH_DATA'
method_icon = settings.bl_rna.properties['brushstroke_method'].enum_items[context_brushstroke.method].icon method_icon = settings.bl_rna.properties['brushstroke_method'].enum_items[context_brushstroke.method].icon
layout.prop(context_brushstroke, 'name', text='', emboss=False, icon=method_icon) col = layout.column()
row = col.row(align=True)
row.prop(context_brushstroke, 'name', text='', emboss=False, icon=method_icon)
bs_ob = bpy.data.objects.get(item.name)
if not bs_ob:
return
row.prop(bs_ob, 'hide_viewport', icon_only=True, emboss=False)
row.prop(bs_ob, 'hide_render', icon_only=True, emboss=False)
else: else:
layout.label(text="", translate=False, icon_value=icon) layout.label(text="", translate=False, icon_value=icon)
elif self.layout_type == 'GRID': elif self.layout_type == 'GRID':