Brushstroke Tools: Initial Version #328
@ -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':
|
||||||
|
Loading…
Reference in New Issue
Block a user