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>2019-05-28 16:53:44 +0300
committerVilem Duha <vilem.duha@gmail.com>2019-05-28 21:41:32 +0300
commit2f9b3836cc8d437ad5a86a528a76dc64bd1b6033 (patch)
tree22d1750579ad5c5e374954bd70b9111bdf78d069 /blenderkit/ui_panels.py
parent18b843223df65b40bf77cb3c57a3824e2812647b (diff)
BlenderKit: switch to new validation system, wher mark for validation isn't needed.
Further protect for unavailable quotas from the server.
Diffstat (limited to 'blenderkit/ui_panels.py')
-rw-r--r--blenderkit/ui_panels.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/blenderkit/ui_panels.py b/blenderkit/ui_panels.py
index 552516a4..a0ba9713 100644
--- a/blenderkit/ui_panels.py
+++ b/blenderkit/ui_panels.py
@@ -43,7 +43,7 @@ def label_multiline(layout, text='', icon='NONE', width=-1):
threshold = int(width / 5.5)
else:
threshold = 35
- maxlines = 3
+ maxlines = 6
li = 0
for l in lines:
while len(l) > threshold:
@@ -128,7 +128,7 @@ def draw_upload_common(layout, props, asset_type, context):
row = layout.row()
row.prop(props, 'asset_base_id', icon='FILE_TICK')
- layout.operator("object.blenderkit_mark_for_validation", icon='EXPORT')
+ # layout.operator("object.blenderkit_mark_for_validation", icon='EXPORT')
layout.prop(props, 'category')
if asset_type == 'MODEL' and props.subcategory != '': # by now block this for other asset types.
@@ -420,7 +420,9 @@ class VIEW3D_PT_blenderkit_profile(Panel):
layout.label(text='Email: %s' % (me['email']))
if me.get('sumAssetFilesSize') is not None: # TODO remove this when production server has these too.
layout.label(text='Public assets: %i Mb' % (me['sumAssetFilesSize']))
+ if me.get('sumPrivateAssetFilesSize') is not None:
layout.label(text='Private assets: %i Mb' % (me['sumPrivateAssetFilesSize']))
+ if me.get('remainingPrivateQuota') is not None:
layout.label(text='Remaining private storage: %i Mb' % (me['remainingPrivateQuota']))
layout.operator("wm.url_open", text="See my uploads",
icon='URL').url = paths.BLENDERKIT_USER_ASSETS