From 8c2e15eb47f89048da9f4f1ade49bd745b5190c5 Mon Sep 17 00:00:00 2001 From: Robin Forbes Date: Mon, 21 Jul 2025 23:38:54 +0100 Subject: [PATCH] compat(4.5): use renamed group function --- api/tree.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/tree.py b/api/tree.py index d34dc81..a92108b 100644 --- a/api/tree.py +++ b/api/tree.py @@ -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): @@ -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)