Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion api/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from .arrange import _arrange

IS_BLENDER_4 = bpy.app.version[0] >= 4
IS_BLENDER_4_5 = IS_BLENDER_4 and bpy.app.version[1] >= 5

def _as_iterable(x):
if isinstance(x, Type):
Expand Down Expand Up @@ -162,7 +163,7 @@ 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):
if IS_BLENDER_4:
if IS_BLENDER_4 and not IS_BLENDER_4_5:
result = geometrynodegroup(node_tree=node_group, *args, **kwargs)
else:
result = group(node_tree=node_group, *args, **kwargs)
Expand Down