Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVilem Duha <vilem.duha@gmail.com>2019-06-13 01:20:43 +0300
committerVilem Duha <vilem.duha@gmail.com>2019-06-13 01:22:31 +0300
commitb35189e003e14301df22c264d6c762d6acaa9e2f (patch)
treef41d24b460cc2276e63b0070482fb1f98ac06e2e /blenderkit/download.py
parent05f8a2118ff12b966f34acd08d1bc3a9c0b7c96a (diff)
BlenderKit: Make oauth more thread-safe.
-avoid blender crash in casae of calling hasattr(context, 'view_layer') and others. -autofix process
Diffstat (limited to 'blenderkit/download.py')
-rw-r--r--blenderkit/download.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/blenderkit/download.py b/blenderkit/download.py
index 06342db6..647c15ce 100644
--- a/blenderkit/download.py
+++ b/blenderkit/download.py
@@ -544,7 +544,7 @@ class Downloader(threading.Thread):
if check_existing(asset_data) and not tcom.passargs.get('delete'):
# this sends the thread for processing, where another check should occur, since the file might be corrupted.
tcom.downloaded = 100
- print('not downloading, trying to append again')
+ utils.p('not downloading, trying to append again')
return;
file_name = paths.get_download_filenames(asset_data)[0] # prefer global dir if possible.
# for k in asset_data:
@@ -646,7 +646,7 @@ def check_existing(asset_data):
file_names = paths.get_download_filenames(asset_data)
- print('check if file allready exists')
+ utils.p('check if file allready exists')
if len(file_names) == 2:
# TODO this should check also for failed or running downloads.
# If download is running, assign just the running thread. if download isn't running but the file is wrong size,