From 69fc090f5508b4b0d6cb99bbdb2bbb3327aa567c Mon Sep 17 00:00:00 2001 From: Onek8 Date: Wed, 28 May 2025 21:44:06 +0000 Subject: [PATCH] t3du - Conditional Shader Nodes 4.0 + --- leenkx/blender/lnx/nodes_logic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leenkx/blender/lnx/nodes_logic.py b/leenkx/blender/lnx/nodes_logic.py index 1babb94..a591702 100644 --- a/leenkx/blender/lnx/nodes_logic.py +++ b/leenkx/blender/lnx/nodes_logic.py @@ -77,7 +77,7 @@ class LNX_MT_NodeAddOverride(bpy.types.Menu): layout.separator() layout.menu(f'LNX_MT_{INTERNAL_GROUPS_MENU_ID}_menu', text=internal_groups_menu_class.bl_label, icon='OUTLINER_OB_GROUP_INSTANCE') - elif context.space_data.tree_type == 'ShaderNodeTree': + elif context.space_data.tree_type == 'ShaderNodeTree' and bpy.app.version > (4, 0, 0): # TO DO - Recursively gather nodes and draw them to menu LNX_MT_NodeAddOverride.overridden_draw(self, context)