From 2f9b3836cc8d437ad5a86a528a76dc64bd1b6033 Mon Sep 17 00:00:00 2001 From: Vilem Duha Date: Tue, 28 May 2019 15:53:44 +0200 Subject: BlenderKit: switch to new validation system, wher mark for validation isn't needed. Further protect for unavailable quotas from the server. --- blenderkit/ui_panels.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'blenderkit/ui_panels.py') 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 -- cgit v1.2.3