Update leenkx/blender/lnx/utils.py
This commit is contained in:
parent
972775b432
commit
ccb554ba16
@ -191,7 +191,10 @@ def get_gapi():
|
|||||||
return getattr(item, target_to_gapi(item.lnx_project_target))
|
return getattr(item, target_to_gapi(item.lnx_project_target))
|
||||||
if wrd.lnx_runtime == 'Browser':
|
if wrd.lnx_runtime == 'Browser':
|
||||||
return 'webgl'
|
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:
|
def is_gapi_gl_es() -> bool:
|
||||||
@ -348,7 +351,10 @@ def krom_paths():
|
|||||||
sdk_path = get_sdk_path()
|
sdk_path = get_sdk_path()
|
||||||
if lnx.utils.get_os() == 'win':
|
if lnx.utils.get_os() == 'win':
|
||||||
krom_location = sdk_path + '/Krom'
|
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':
|
elif lnx.utils.get_os() == 'mac':
|
||||||
krom_location = sdk_path + '/Krom/Krom.app/Contents/MacOS'
|
krom_location = sdk_path + '/Krom/Krom.app/Contents/MacOS'
|
||||||
krom_path = krom_location + '/Krom'
|
krom_path = krom_location + '/Krom'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user