compatibility with newer Blender
1.3.2 - fixed: compatibility with blender 3.5 (nodegroup socket API change)
This commit is contained in:
+2
-1
@@ -118,7 +118,8 @@ def connect_render_layer(rlayer, ng=None, out=None, frame=None):
|
||||
for s in reversed(ng.inputs):
|
||||
if not s.is_linked: # and not any(x.layer == s.name for x in rl_nodes)
|
||||
print(f'removing grp unlinked input {s.name}')
|
||||
ng.inputs.remove(s)
|
||||
# ng.inputs.remove(s)
|
||||
ng.node_tree.inputs.remove(s)
|
||||
|
||||
## get nodes from linked NG inputs ??? maybe more clear...
|
||||
# rl_nodes = [s.links[0].from_node for s in ng.inputs if s.links and s.links[0].from_node and s.links[0].from_node.type == 'R_LAYERS']
|
||||
|
||||
Reference in New Issue
Block a user