Merge pull request 'main' (#47) from Onek8/LNXSDK:main into main

Reviewed-on: LeenkxTeam/LNXSDK#47
This commit is contained in:
LeenkxTeam 2025-05-10 16:32:31 +00:00
commit f2dcfc0ffa
2 changed files with 4 additions and 4 deletions

View File

@ -310,9 +310,9 @@ class LeenkxAddonPreferences(AddonPreferences):
layout.label(text="Welcome to Leenkx!") layout.label(text="Welcome to Leenkx!")
# Compare version Blender and Leenkx (major, minor) # Compare version Blender and Leenkx (major, minor)
if bpy.app.version[0] != 4 or bpy.app.version[1] != 2: if bpy.app.version[:2] not in [(4, 4), (4, 2), (3, 6), (3, 3)]:
box = layout.box().column() box = layout.box().column()
box.label(text="Warning: For Leenkx to work correctly, use a Blender LTS version such as 4.2 | 3.6 | 3.3") box.label(text="Warning: For Leenkx to work correctly, use a Blender LTS version")
layout.prop(self, "sdk_path") layout.prop(self, "sdk_path")
sdk_path = get_sdk_path(context) sdk_path = get_sdk_path(context)

View File

@ -828,8 +828,8 @@ def check_blender_version(op: bpy.types.Operator):
"""Check whether the Blender version is supported by Leenkx, """Check whether the Blender version is supported by Leenkx,
if not, report in UI. if not, report in UI.
""" """
if bpy.app.version[0] != 4 or bpy.app.version[1] != 2: if bpy.app.version[:2] not in [(4, 4), (4, 2), (3, 6), (3, 3)]:
op.report({'INFO'}, 'INFO: For Leenkx to work correctly, use a Blender LTS version such as 4.2 | 3.6 | 3.3') op.report({'INFO'}, 'INFO: For Leenkx to work correctly, use a Blender LTS version')
def check_saved(self): def check_saved(self):