compatibility with newer Blender

1.3.2

- fixed: compatibility with blender 3.5 (nodegroup socket API change)
This commit is contained in:
pullusb
2023-04-04 15:51:41 +02:00
parent b19f9d9473
commit 556f767f3b
5 changed files with 29 additions and 12 deletions
+2 -1
View File
@@ -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']