Brushstroke Tools: Initial Version #328
@ -176,6 +176,7 @@ class BSBST_socket_info(bpy.types.PropertyGroup):
|
|||||||
class BSBST_modifier_info(bpy.types.PropertyGroup):
|
class BSBST_modifier_info(bpy.types.PropertyGroup):
|
||||||
name: bpy.props.StringProperty(default='', get=get_modifier_name, set=set_modifier_name)
|
name: bpy.props.StringProperty(default='', get=get_modifier_name, set=set_modifier_name)
|
||||||
hide_ui: bpy.props.BoolProperty(default=False)
|
hide_ui: bpy.props.BoolProperty(default=False)
|
||||||
|
default_closed: bpy.props.BoolProperty(default=False)
|
||||||
socket_info: bpy.props.CollectionProperty(type=BSBST_socket_info)
|
socket_info: bpy.props.CollectionProperty(type=BSBST_socket_info)
|
||||||
|
|
||||||
class BSBST_context_brushstrokes(bpy.types.PropertyGroup):
|
class BSBST_context_brushstrokes(bpy.types.PropertyGroup):
|
||||||
|
@ -412,7 +412,7 @@ class BSBST_PT_brushstroke_tools_panel(bpy.types.Panel):
|
|||||||
if mod_info.hide_ui:
|
if mod_info.hide_ui:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
mod_header, mod_panel = style_panel.panel(mod.name, default_closed = False)
|
mod_header, mod_panel = style_panel.panel(mod.name, default_closed = mod_info.default_closed)
|
||||||
row = mod_header.row(align=True)
|
row = mod_header.row(align=True)
|
||||||
row.label(text='', icon='GEOMETRY_NODES')
|
row.label(text='', icon='GEOMETRY_NODES')
|
||||||
row.prop(mod_info, 'name', text='', emboss=False)
|
row.prop(mod_info, 'name', text='', emboss=False)
|
||||||
|
Loading…
Reference in New Issue
Block a user