[Bf-extensions-cvs] [c5180111] master: BlenderKit: Bring back login buttons in profile, since Oauth sometimes fails for unknown reasons.
Vilem Duha
noreply at git.blender.org
Tue Jul 9 00:50:48 CEST 2019
Commit: c5180111130e6f9da41f325ebb9834d38d326fc7
Author: Vilem Duha
Date: Tue Jul 2 21:59:45 2019 +0200
Branches: master
https://developer.blender.org/rBAc5180111130e6f9da41f325ebb9834d38d326fc7
BlenderKit: Bring back login buttons in profile, since Oauth sometimes fails for unknown reasons.
===================================================================
M blenderkit/ui_panels.py
===================================================================
diff --git a/blenderkit/ui_panels.py b/blenderkit/ui_panels.py
index c11ad6e3..968be7f4 100644
--- a/blenderkit/ui_panels.py
+++ b/blenderkit/ui_panels.py
@@ -410,9 +410,8 @@ class VIEW3D_PT_blenderkit_profile(Panel):
layout.operator("wm.blenderkit_login_cancel", text="Cancel", icon='CANCEL')
return
- if len(user_preferences.api_key) < 20:
- if user_preferences.enable_oauth:
- draw_login_buttons(layout)
+ if user_preferences.enable_oauth:
+ draw_login_buttons(layout)
else:
me = bpy.context.window_manager.get('bkit profile')
if me is not None:
More information about the Bf-extensions-cvs
mailing list