forked from LeenkxTeam/LNXSDK
Update leenkx.py
This commit is contained in:
parent
0eb4effeb3
commit
6bed0cbc6d
14
leenkx.py
14
leenkx.py
@ -182,7 +182,7 @@ class LeenkxAddonPreferences(AddonPreferences):
|
|||||||
description=(
|
description=(
|
||||||
"Whether to use OpenCL processing to generate radiance maps with CMFT."
|
"Whether to use OpenCL processing to generate radiance maps with CMFT."
|
||||||
" If you experience extremely long build times caused by CMFT, try disabling this option."
|
" If you experience extremely long build times caused by CMFT, try disabling this option."
|
||||||
" For more information see https://github.com/leenkx3d/leenkx/issues/2760"
|
" For more information see https://dev.leenkx.com/LeenkxTeam/LNXSDK/issues/2760"
|
||||||
))
|
))
|
||||||
legacy_shaders: BoolProperty(name="Legacy Shaders", description="Attempt to compile shaders runnable on older hardware, use this for WebGL1 or GLES2 support in mobile render path", default=False)
|
legacy_shaders: BoolProperty(name="Legacy Shaders", description="Attempt to compile shaders runnable on older hardware, use this for WebGL1 or GLES2 support in mobile render path", default=False)
|
||||||
relative_paths: BoolProperty(name="Generate Relative Paths", description="Write relative paths in khafile", default=False)
|
relative_paths: BoolProperty(name="Generate Relative Paths", description="Write relative paths in khafile", default=False)
|
||||||
@ -617,8 +617,6 @@ def try_os_call(func: Callable, *args, **kwargs) -> bool:
|
|||||||
|
|
||||||
|
|
||||||
def git_clone(done: Callable[[bool], None], rootdir: str, gitn: str, subdir: str, recursive=False):
|
def git_clone(done: Callable[[bool], None], rootdir: str, gitn: str, subdir: str, recursive=False):
|
||||||
print('Download SDK manually from https://leenkx.com...')
|
|
||||||
return False
|
|
||||||
rootdir = os.path.normpath(rootdir)
|
rootdir = os.path.normpath(rootdir)
|
||||||
path = rootdir + '/' + subdir if subdir != '' else rootdir
|
path = rootdir + '/' + subdir if subdir != '' else rootdir
|
||||||
|
|
||||||
@ -629,14 +627,12 @@ def git_clone(done: Callable[[bool], None], rootdir: str, gitn: str, subdir: str
|
|||||||
shutil.rmtree(path, onerror=remove_readonly)
|
shutil.rmtree(path, onerror=remove_readonly)
|
||||||
|
|
||||||
if recursive:
|
if recursive:
|
||||||
run_proc(['git', 'clone', '--recursive', 'https://github.com/' + gitn, path, '--depth', '1', '--shallow-submodules', '--jobs', '4'], done)
|
run_proc(['git', 'clone', '--recursive', 'https://dev.leenkx.com/' + gitn, path, '--depth', '1', '--shallow-submodules', '--jobs', '4'], done)
|
||||||
else:
|
else:
|
||||||
run_proc(['git', 'clone', 'https://github.com/' + gitn, path, '--depth', '1'], done)
|
run_proc(['git', 'clone', 'https://dev.leenkx.com/' + gitn, path, '--depth', '1'], done)
|
||||||
|
|
||||||
|
|
||||||
def git_test(self: bpy.types.Operator, required_version=None):
|
def git_test(self: bpy.types.Operator, required_version=None):
|
||||||
print('Download SDK manually from https://leenkx.com...')
|
|
||||||
return False
|
|
||||||
try:
|
try:
|
||||||
p = subprocess.Popen(['git', '--version'], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
p = subprocess.Popen(['git', '--version'], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
||||||
output, _ = p.communicate()
|
output, _ = p.communicate()
|
||||||
@ -789,7 +785,7 @@ def download_sdk(self: bpy.types.Operator, context):
|
|||||||
else:
|
else:
|
||||||
done(False)
|
done(False)
|
||||||
|
|
||||||
git_clone(done_clone, sdk_path, 'leenkx3d/lnxsdk', '', recursive=True)
|
git_clone(done_clone, sdk_path, 'LeenkxTeam/LNXSDK', '', recursive=True)
|
||||||
|
|
||||||
|
|
||||||
class LnxAddonRestoreButton(bpy.types.Operator):
|
class LnxAddonRestoreButton(bpy.types.Operator):
|
||||||
@ -812,7 +808,7 @@ class LnxAddonHelpButton(bpy.types.Operator):
|
|||||||
"""Updater help"""
|
"""Updater help"""
|
||||||
bl_idname = "lnx_addon.help"
|
bl_idname = "lnx_addon.help"
|
||||||
bl_label = "Help"
|
bl_label = "Help"
|
||||||
bl_description = "Leenkx Updater is currently disabled. Download SDK manually from https://leenkx.com"
|
bl_description = "Leenkx Updater to get the latest SDK from https://dev.leenkx.com/LeenkxTeam/LNXSDK"
|
||||||
|
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
webbrowser.open('https://leenkx.com/support')
|
webbrowser.open('https://leenkx.com/support')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user