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>2021-07-04 10:10:58 +0300
committerJeroen Bakker <jeroen@blender.org>2021-07-26 09:08:58 +0300
commit29db4b5feb893fdd02cd45b12037e0e5ac3cd22c (patch)
treeb619bb2f2f94174a5128d6ece8f2cde82f5ddda8 /blenderkit/paths.py
parent526557bba142a359b9aad773cecf5d702577eb2e (diff)
BlenderKit: fix category display
was actually showing slugs, now shows names with links fix long descriptions issue - now has a 'more' button to read the rest online (label_multiline now has a max_lines parameter and returns True if max lenght was reached) fix avatars to match server
Diffstat (limited to 'blenderkit/paths.py')
-rw-r--r--blenderkit/paths.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/blenderkit/paths.py b/blenderkit/paths.py
index 57511108..12b815e5 100644
--- a/blenderkit/paths.py
+++ b/blenderkit/paths.py
@@ -83,6 +83,8 @@ def get_oauth_landing_url():
def get_author_gallery_url(author_id):
return f'{get_bkit_url()}/asset-gallery?query=author_id:{author_id}'
+def get_asset_gallery_url(asset_id):
+ return f'{get_bkit_url()}/asset-gallery-detail/{asset_id}/'
def default_global_dict():
from os.path import expanduser