[Bf-extensions-cvs] [570a7158] master: BlenderKit: enable both portfolio and BK profile link
Vilem Duha
noreply at git.blender.org
Fri Nov 5 09:23:30 CET 2021
Commit: 570a715847f969a5297b50d12a7671226d21073d
Author: Vilem Duha
Date: Fri Nov 5 09:23:14 2021 +0100
Branches: master
https://developer.blender.org/rBA570a715847f969a5297b50d12a7671226d21073d
BlenderKit: enable both portfolio and BK profile link
===================================================================
M blenderkit/ui_panels.py
===================================================================
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
More information about the Bf-extensions-cvs
mailing list