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-04-26 18:48:18 +0300
committerVilém Duha <vilda.novak@gmail.com>2021-04-26 18:48:18 +0300
commite7acb93c89fc00a5dfffcff90ab3956a0eaf34f0 (patch)
tree28853a2e858e7f6ae059fcbc52887e297dedc2db /blenderkit/resolutions.py
parent4cb833e84acfd2be5fa08ce75118ce9cb60643b8 (diff)
BlenderKit:fixes
- improve material and model thumbnailers -Now it's possible to re-render assets directly from right-click menu. -fix appending of assets with wrong name -several fixes for experimental asset bar - small fixes in bg_blender for background operations - material thumbnailer background fixed - draw upload thumbnail in upload UI
Diffstat (limited to 'blenderkit/resolutions.py')
-rw-r--r--blenderkit/resolutions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/blenderkit/resolutions.py b/blenderkit/resolutions.py
index b2a5e806..1a4af5fc 100644
--- a/blenderkit/resolutions.py
+++ b/blenderkit/resolutions.py
@@ -410,7 +410,7 @@ def regenerate_thumbnail_material(data):
# preferences = bpy.context.preferences.addons['blenderkit'].preferences
# layout.prop(preferences, "thumbnail_use_gpu")
# TODO: here it should call start_material_thumbnailer , but with the wait property on, so it can upload afterwards.
- bpy.ops.object.blenderkit_material_thumbnail()
+ bpy.ops.object.blenderkit_generate_material_thumbnail()
time.sleep(130)
# save
# this does the actual job
@@ -525,7 +525,7 @@ def download_asset(asset_data, resolution='blend', unpack=False, api_key=''):
has_url = download.get_download_url(asset_data, download.get_scene_id(), api_key, tcom=None,
resolution='blend')
if has_url:
- fpath = download.download_file(asset_data)
+ fpath = download.download_asset_file(asset_data, api_key = api_key)
if fpath and unpack and asset_data['assetType'] != 'hdr':
send_to_bg(asset_data, fpath, command='unpack', wait=True)
return fpath