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 3 additions and 2 deletions
Showing only changes of commit 19899ab60e - Show all commits

View File

@ -378,7 +378,7 @@ class BSBST_OT_copy_brushstrokes(bpy.types.Operator):
if not mod_info.socket_info[v.identifier].link_context: if not mod_info.socket_info[v.identifier].link_context:
continue continue
# re-initialize linked context parameters # re-initialize linked context parameters
link_context_type = settings.preset_object.modifier_info[mod.name].socket_info[v.identifier].link_context_type link_context_type = ob.modifier_info[mod.name].socket_info[v.identifier].link_context_type
if link_context_type=='SURFACE_OBJECT': if link_context_type=='SURFACE_OBJECT':
ob.modifiers[mod.name][f'{v.identifier}'] = surface_object ob.modifiers[mod.name][f'{v.identifier}'] = surface_object
elif link_context_type=='UVMAP': elif link_context_type=='UVMAP':

View File

@ -198,7 +198,8 @@ class BSBST_MT_bs_context_menu(bpy.types.Menu):
def draw(self, _context): def draw(self, _context):
layout = self.layout layout = self.layout
layout.operator('brushstroke_tools.copy_brushstrokes', text='Copy to Selected Objects') op = layout.operator('brushstroke_tools.copy_brushstrokes', text='Copy to Selected Objects')
op.copy_all = False
op = layout.operator('brushstroke_tools.copy_brushstrokes', text='Copy All to Selected Objects') op = layout.operator('brushstroke_tools.copy_brushstrokes', text='Copy All to Selected Objects')
op.copy_all = True op.copy_all = True