BlenderKit: fix replace models hidden for unlocked assets.

This commit is contained in:
Vilém Duha 2020-01-13 13:29:20 +01:00
parent 59cc0c74d8
commit 8f0d71a23c
1 changed files with 1 additions and 2 deletions

View File

@ -773,8 +773,7 @@ class OBJECT_MT_blenderkit_asset_menu(bpy.types.Menu):
op = layout.operator('view3d.blenderkit_search', text='Search Similar')
op.keywords = asset_data['name'] + ' ' + asset_data['description'] + ' ' + ' '.join(asset_data['tags'])
if asset_data.get('can_download'):
if asset_data.get('canDownload') != 0:
if bpy.context.view_layer.objects.active is not None and ui_props.asset_type == 'MODEL':
aob = bpy.context.active_object
op = layout.operator('scene.blenderkit_download', text='Replace Active Models')