Skip to content

Commit

Permalink
Add check for nested trees
Browse files Browse the repository at this point in the history
  • Loading branch information
carson-katri committed Nov 17, 2023
1 parent 6c25f12 commit 8a1b4c4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion api/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,10 @@ def validate_param(param):
# Return a function that creates a NodeGroup node in the tree.
# This lets @trees be used in other @trees via simple function calls.
def group_reference(*args, **kwargs):
result = geometrynodegroup(node_tree=node_group, *args, **kwargs)
if IS_BLENDER_4:
result = geometrynodegroup(node_tree=node_group, *args, **kwargs)
else:
result = group(node_tree=node_group, *args, **kwargs)
group_outputs = []
for group_output in result._socket.node.outputs:
group_outputs.append(Type(group_output))
Expand Down

0 comments on commit 8a1b4c4

Please sign in to comment.