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:
Diffstat (limited to 'blenderkit/download.py')
-rw-r--r--blenderkit/download.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/blenderkit/download.py b/blenderkit/download.py
index 65dc631b..c1db12ea 100644
--- a/blenderkit/download.py
+++ b/blenderkit/download.py
@@ -106,8 +106,9 @@ def check_unused():
def scene_save(context):
''' does cleanup of blenderkit props and sends a message to the server about assets used.'''
# TODO this can be optimized by merging these 2 functions, since both iterate over all objects.
- check_unused()
- report_usages()
+ if not bpy.app.background:
+ check_unused()
+ report_usages()
@persistent