Skip to content

Commit 8a1b4c4

Browse files
committed
Add check for nested trees
1 parent 6c25f12 commit 8a1b4c4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

api/tree.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,10 @@ def validate_param(param):
162162
# Return a function that creates a NodeGroup node in the tree.
163163
# This lets @trees be used in other @trees via simple function calls.
164164
def group_reference(*args, **kwargs):
165-
result = geometrynodegroup(node_tree=node_group, *args, **kwargs)
165+
if IS_BLENDER_4:
166+
result = geometrynodegroup(node_tree=node_group, *args, **kwargs)
167+
else:
168+
result = group(node_tree=node_group, *args, **kwargs)
166169
group_outputs = []
167170
for group_output in result._socket.node.outputs:
168171
group_outputs.append(Type(group_output))

0 commit comments

Comments
 (0)