Brushstroke Tools: Initial Version #328
@ -348,6 +348,19 @@ def get_flow_object(bs):
|
|||||||
def set_flow_object(bs, ob):
|
def set_flow_object(bs, ob):
|
||||||
if not bs:
|
if not bs:
|
||||||
return
|
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
|
bs['BSBST_flow_object'] = ob
|
||||||
|
|
||||||
def context_brushstrokes(context):
|
def context_brushstrokes(context):
|
||||||
|
Loading…
Reference in New Issue
Block a user