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 840c19cfa6 - Show all commits

View File

@ -348,6 +348,19 @@ def get_flow_object(bs):
def set_flow_object(bs, ob):
if not bs:
return
# assign flow pointer
for mod in bs.modifiers:
mod_info = bs.modifier_info.get(mod.name)
if not mod_info:
continue
for s in mod_info.socket_info:
if not s.link_context:
continue
if not s.link_context_type == 'FLOW_OBJECT':
continue
mod[s.name] = ob
ob.update_tag()
bs['BSBST_flow_object'] = ob
def context_brushstrokes(context):