diff options
author | Vilém Duha <vilda.novak@gmail.com> | 2019-09-05 17:51:52 +0300 |
---|---|---|
committer | Vilém Duha <vilda.novak@gmail.com> | 2019-09-10 17:55:32 +0300 |
commit | 7ebd5e94dfdde35eb4472e14793221661e470616 (patch) | |
tree | affa11ca045a32998cd8d9cec30872c741adb15b | |
parent | 38eb5e03f971abf89a585be68354a611a314f0a8 (diff) |
BlenderKit: Fixes:
- bg_blender timer unregistering after first use
- collection linking didn't compare complete paths.
- silencing one forgotten print
-rw-r--r-- | blenderkit/append_link.py | 4 | ||||
-rw-r--r-- | blenderkit/bg_blender.py | 4 | ||||
-rw-r--r-- | blenderkit/download.py | 2 |
3 files changed, 6 insertions, 4 deletions
diff --git a/blenderkit/append_link.py b/blenderkit/append_link.py index 3ef6f4a1..c6cc02c4 100644 --- a/blenderkit/append_link.py +++ b/blenderkit/append_link.py @@ -105,7 +105,9 @@ def link_group(file_name, obnames=[], location=(0, 0, 0), link=False, **kwargs): main_object.instance_type = 'COLLECTION' for col in bpy.data.collections: if col.library is not None: - if col.library.filepath == file_name: + fp = bpy.path.abspath(col.library.filepath) + fp1 = bpy.path.abspath(file_name) + if fp1 == fp1: main_object.instance_collection = col break; diff --git a/blenderkit/bg_blender.py b/blenderkit/bg_blender.py index c0982702..e2596013 100644 --- a/blenderkit/bg_blender.py +++ b/blenderkit/bg_blender.py @@ -133,8 +133,8 @@ def bg_update(): readthread = threading.Thread(target=threadread, args=([tcom]), daemon=True) readthread.start() p[0] = readthread - if len(bg_processes) == 0: - bpy.app.timers.unregister(bg_update) + # if len(bg_processes) == 0: + # bpy.app.timers.unregister(bg_update) if len(bg_processes) > 0: return .3 return 1. diff --git a/blenderkit/download.py b/blenderkit/download.py index 3131ad10..cfda9b7b 100644 --- a/blenderkit/download.py +++ b/blenderkit/download.py @@ -238,7 +238,7 @@ def report_usages(): scene['assets reported'] = assets_reported if new_assets_count == 0: - print('no new assets were added') + # print('no new assets were added') return; usage_report = { 'scene': sid, |