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
2 changed files with 2 additions and 1 deletions
Showing only changes of commit e1cfd1ac27 - Show all commits

View File

@ -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):

View File

@ -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)