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-11-05 11:23:14 +0300
committerVilem Duha <vilem.duha@gmail.com>2021-11-08 13:59:05 +0300
commitd394c8fb9f74b421203d54b988bc4a2388bb2b7d (patch)
tree484a3cab6abfdc2e4725ee6cbb55c0cb323f6075
parent2259a24adb662c35ce0a9a3ee64e7e17c4a39d7c (diff)
BlenderKit: enable both portfolio and BK profile link
(cherry picked from commit 570a715847f969a5297b50d12a7671226d21073d)
-rw-r--r--blenderkit/ui_panels.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/blenderkit/ui_panels.py b/blenderkit/ui_panels.py
index f8f08a21..d20b1f6e 100644
--- a/blenderkit/ui_panels.py
+++ b/blenderkit/ui_panels.py
@@ -2004,11 +2004,15 @@ class AssetPopupCard(bpy.types.Operator, ratings_utils.RatingsProperties):
if a.get('aboutMeUrl') is not None:
url = a['aboutMeUrl']
text = url
- if len(url) > 25:
- text = url[:25] + '...'
- else:
- url = paths.get_author_gallery_url(a['id'])
- text = "Open Author's Profile"
+ if len(url) > 45:
+ text = url[:45] + '...'
+ op = button_row.operator('wm.url_open', text=text)
+ op.url = url
+ button_row = author_box.row()
+ button_row.scale_y = 2.0
+
+ url = paths.get_author_gallery_url(a['id'])
+ text = "Author's Profile"
op = button_row.operator('wm.url_open', text=text)
op.url = url