forked from LeenkxTeam/LNXSDK
Blender 2.8 - 4.5 Support
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user