diff --git a/leenkx.py b/leenkx.py index 801f0bb4..d0960cf0 100644 --- a/leenkx.py +++ b/leenkx.py @@ -7,7 +7,7 @@ bl_info = { "description": "Full Stack SDK", "author": "Leenkx.com", "version": (2026, 5, 0), - "blender": (4, 5, 0), + "blender": (5, 2, 0), "doc_url": "https://leenkx.com/", "tracker_url": "https://leenkx.com/support" } diff --git a/leenkx/blender/lnx/logicnode/__init__.py b/leenkx/blender/lnx/logicnode/__init__.py index 2c21aa46..84dfab6b 100644 --- a/leenkx/blender/lnx/logicnode/__init__.py +++ b/leenkx/blender/lnx/logicnode/__init__.py @@ -1,3 +1,4 @@ +import bpy import importlib import inspect import pkgutil diff --git a/leenkx/blender/lnx/material/cycles_nodes/nodes_shader.py b/leenkx/blender/lnx/material/cycles_nodes/nodes_shader.py index 6f8cea4c..a8d9d797 100644 --- a/leenkx/blender/lnx/material/cycles_nodes/nodes_shader.py +++ b/leenkx/blender/lnx/material/cycles_nodes/nodes_shader.py @@ -182,12 +182,8 @@ if bpy.app.version > (4, 1, 0): pass if (node.inputs['Emission Strength'].is_linked or node.inputs['Emission Strength'].default_value != 0.0)\ and (node.inputs['Emission Color'].is_linked or not mat_utils.equals_color_socket(node.inputs['Emission Color'], (0.0, 0.0, 0.0), comp_alpha=False)): - if bpy.app.version >= (4, 4, 0): - emission_col = c.parse_vector_input(node.inputs[27]) - emission_strength = c.parse_value_input(node.inputs[28]) - else: - emission_col = c.parse_vector_input(node.inputs[26]) - emission_strength = c.parse_value_input(node.inputs[27]) + emission_col = c.parse_vector_input(node.inputs['Emission Color']) + emission_strength = c.parse_value_input(node.inputs['Emission Strength']) state.out_emission_col = '({0} * {1})'.format(emission_col, emission_strength) mat_state.emission_type = mat_state.EmissionType.SHADED else: diff --git a/leenkx/blender/lnx/utils.py b/leenkx/blender/lnx/utils.py index 65eb7fb5..4498812d 100644 --- a/leenkx/blender/lnx/utils.py +++ b/leenkx/blender/lnx/utils.py @@ -875,7 +875,7 @@ def check_blender_version(op: bpy.types.Operator): """Check whether the Blender version is supported by Leenkx, if not, report in UI. """ - if bpy.app.version[:2] not in [(4, 5), (4, 4), (4, 2), (3, 6), (3, 3)]: + if bpy.app.version[:2] not in [(5, 2), (4, 5), (4, 4), (4, 2), (3, 6), (3, 3)]: op.report({'INFO'}, 'INFO: For Leenkx to work correctly, use a Blender LTS version')