Update leenkx/blender/lnx/utils.py

This commit is contained in:
Onek8 2025-03-31 13:51:58 +00:00
parent 972775b432
commit ccb554ba16

View File

@ -191,7 +191,10 @@ def get_gapi():
return getattr(item, target_to_gapi(item.lnx_project_target))
if wrd.lnx_runtime == 'Browser':
return 'webgl'
return 'direct3d11' if get_os() == 'win' else 'opengl'
if get_os() == 'win' and lnx.utils.get_rp().rp_voxels == 'Off':
return 'direct3d11'
else:
return 'opengl'
def is_gapi_gl_es() -> bool:
@ -348,7 +351,10 @@ def krom_paths():
sdk_path = get_sdk_path()
if lnx.utils.get_os() == 'win':
krom_location = sdk_path + '/Krom'
krom_path = krom_location + '/Krom.exe'
if lnx.utils.get_rp().rp_voxels == 'Off':
krom_path = krom_location + '/Krom.exe'
else:
krom_path = krom_location + '/Krom_opengl.exe'
elif lnx.utils.get_os() == 'mac':
krom_location = sdk_path + '/Krom/Krom.app/Contents/MacOS'
krom_path = krom_location + '/Krom'