Blender 2.8 - 4.5 Support

This commit is contained in:
2025-09-28 12:44:04 -07:00
parent 8f8d4b1376
commit f97d8fd846
34 changed files with 581 additions and 399 deletions

View File

@ -420,16 +420,19 @@ class LNX_OT_ExporterOpenVS(bpy.types.Operator):
@classmethod
def poll(cls, context):
if not lnx.utils.get_os_is_windows():
cls.poll_message_set('This operator is only supported on Windows')
if bpy.app.version >= (2, 90, 0):
cls.poll_message_set('This operator is only supported on Windows')
return False
wrd = bpy.data.worlds['Lnx']
if len(wrd.lnx_exporterlist) == 0:
cls.poll_message_set('No export configuration exists')
if bpy.app.version >= (2, 90, 0):
cls.poll_message_set('No export configuration exists')
return False
if wrd.lnx_exporterlist[wrd.lnx_exporterlist_index].lnx_project_target != 'windows-hl':
cls.poll_message_set('This operator only works with the Windows (C) target')
if bpy.app.version >= (2, 90, 0):
cls.poll_message_set('This operator only works with the Windows (C) target')
return False
return True