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:
authorVilém Duha <vilda.novak@gmail.com>2021-02-15 16:34:13 +0300
committerVilém Duha <vilda.novak@gmail.com>2021-02-15 16:34:13 +0300
commitad3755403473df3d3baeb0fe97cc623b41705a62 (patch)
treec813953191639a6a59a7d885ecf7cc7720682b64 /blenderkit/upload.py
parentecdd010c1eadedb97fa81ea1ba3b44bc06cd4115 (diff)
BlenderKit: fix upload reporting when packing fails
Now sends a clear message to the UI and cancels upload also fixes a small bug in update_down_up
Diffstat (limited to 'blenderkit/upload.py')
-rw-r--r--blenderkit/upload.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/blenderkit/upload.py b/blenderkit/upload.py
index 49533e99..110994e3 100644
--- a/blenderkit/upload.py
+++ b/blenderkit/upload.py
@@ -986,6 +986,10 @@ class Uploader(threading.Thread):
"file_path": fpath
})
+ if not os.path.exists(fpath):
+ self.send_message ("File packing failed, please try manual packing first")
+ return {'CANCELLED'}
+
self.send_message('Uploading files')
uploaded = upload_bg.upload_files(self.upload_data, files)