From 6bed0cbc6d44c182374fcb10b4a9d44ed3c6ae0a Mon Sep 17 00:00:00 2001 From: LeenkxTeam Date: Thu, 23 Jan 2025 15:59:04 +0000 Subject: [PATCH] Update leenkx.py --- leenkx.py | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/leenkx.py b/leenkx.py index e5a3cf5..2368977 100644 --- a/leenkx.py +++ b/leenkx.py @@ -182,7 +182,7 @@ class LeenkxAddonPreferences(AddonPreferences): description=( "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." - " 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) 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): - print('Download SDK manually from https://leenkx.com...') - return False rootdir = os.path.normpath(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) 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: - 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): - print('Download SDK manually from https://leenkx.com...') - return False try: p = subprocess.Popen(['git', '--version'], stdout=subprocess.PIPE, stderr=subprocess.STDOUT) output, _ = p.communicate() @@ -789,7 +785,7 @@ def download_sdk(self: bpy.types.Operator, context): else: 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): @@ -812,7 +808,7 @@ class LnxAddonHelpButton(bpy.types.Operator): """Updater help""" bl_idname = "lnx_addon.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): webbrowser.open('https://leenkx.com/support')