|
@@ -139,16 +139,22 @@ def array_choose_relink(node, indices, array_input, output, ):
|
|
|
"""
|
|
"""
|
|
|
Used to choose the correct link to send out of an array-choose node.
|
|
Used to choose the correct link to send out of an array-choose node.
|
|
|
"""
|
|
"""
|
|
|
|
|
+ prGreen(node)
|
|
|
|
|
+ for l in node.inputs[array_input].links:
|
|
|
|
|
+ print(l)
|
|
|
keep_links = []
|
|
keep_links = []
|
|
|
for index in indices:
|
|
for index in indices:
|
|
|
|
|
+ prOrange(index)
|
|
|
l = node.inputs[array_input].links[index]
|
|
l = node.inputs[array_input].links[index]
|
|
|
keep_links.append(l)
|
|
keep_links.append(l)
|
|
|
for link in node.outputs[output].links:
|
|
for link in node.outputs[output].links:
|
|
|
|
|
+ prOrange(link)
|
|
|
to_node = link.to_node
|
|
to_node = link.to_node
|
|
|
for l in keep_links:
|
|
for l in keep_links:
|
|
|
new_link = l.from_node.outputs[l.from_socket].connect(to_node, link.to_socket)
|
|
new_link = l.from_node.outputs[l.from_socket].connect(to_node, link.to_socket)
|
|
|
array_link_init_hierarchy(new_link)
|
|
array_link_init_hierarchy(new_link)
|
|
|
node.rerouted.append(new_link) # so I can access this in Schema Solve
|
|
node.rerouted.append(new_link) # so I can access this in Schema Solve
|
|
|
|
|
+ prPurple(new_link)
|
|
|
link.die()
|
|
link.die()
|
|
|
|
|
|
|
|
|
|
|
|
@@ -1719,8 +1725,7 @@ class UtilityArrayGet(MantisNode):
|
|
|
self.rerouted=[]
|
|
self.rerouted=[]
|
|
|
|
|
|
|
|
def bPrepare(self, bContext = None,):
|
|
def bPrepare(self, bContext = None,):
|
|
|
- if len(self.hierarchy_dependencies)==0 and len(self.hierarchy_connections)==0 and \
|
|
|
|
|
- len(self.connections)==0 and len(self.dependencies)==0:
|
|
|
|
|
|
|
+ if len(self.rerouted)>0:
|
|
|
self.prepared, self.executed = True, True
|
|
self.prepared, self.executed = True, True
|
|
|
return #Either it is already done or it doesn't matter.
|
|
return #Either it is already done or it doesn't matter.
|
|
|
elif self.prepared == False:
|
|
elif self.prepared == False:
|