diff options
author | Vilém Duha <vilda.novak@gmail.com> | 2021-05-11 13:30:57 +0300 |
---|---|---|
committer | Vilém Duha <vilda.novak@gmail.com> | 2021-05-11 13:31:29 +0300 |
commit | 1a04237c5086416c4d58ce898ad769b077905791 (patch) | |
tree | 96c6d727c74aa7700c86b83fff9e5fc634e2a08f /blenderkit/ui.py | |
parent | a1594de99d3e6ea8cee32f60588d500da4c3ae5e (diff) |
BlenderKit: fixes to UI of ratings and asset popup card
Diffstat (limited to 'blenderkit/ui.py')
-rw-r--r-- | blenderkit/ui.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/blenderkit/ui.py b/blenderkit/ui.py index 182ab99a..14eccb24 100644 --- a/blenderkit/ui.py +++ b/blenderkit/ui.py @@ -382,6 +382,7 @@ def draw_tooltip_with_author(asset_data, x, y): gimg = utils.get_hidden_image(a['gravatarImg'], a['gravatarHash']) aname = asset_data['displayName'] + aname = aname[0].capitalize() + aname[0:] if len(aname)>36: aname = f"{aname[:33]}..." @@ -1419,10 +1420,10 @@ class AssetBarOperator(bpy.types.Operator): my = event.mouse_y - r.y if event.value == 'PRESS' and mouse_in_asset_bar(mx, my): - context.window.cursor_warp(event.mouse_x - 400, event.mouse_y - 20); + # context.window.cursor_warp(event.mouse_x - 300, event.mouse_y - 10); bpy.ops.wm.blenderkit_asset_popup('INVOKE_DEFAULT') - context.window.cursor_warp(event.mouse_x, event.mouse_y); + # context.window.cursor_warp(event.mouse_x, event.mouse_y); # bpy.ops.wm.call_menu(name='OBJECT_MT_blenderkit_asset_menu') return {'RUNNING_MODAL'} |