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-04-11 16:14:45 +0300
committerVilem Duha <vilem.duha@gmail.com>2019-04-21 22:20:16 +0300
commit501f660fe857dd292a18248036124c5339019ed3 (patch)
treed1e1baac41067e0c31d8fe14966cade2dcbf0051 /blenderkit/ui_panels.py
parent7d305b6868e6505ba843ca1b0cc5d6042761e505 (diff)
BlenderKit: save user preferences if user pastes the API key into the panel in 3d view.
some users were confused by this, because they didn't save their preferences. Also some users filled in the API key area some other string and then didn't know what they did wrong.
Diffstat (limited to 'blenderkit/ui_panels.py')
-rw-r--r--blenderkit/ui_panels.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/blenderkit/ui_panels.py b/blenderkit/ui_panels.py
index 724a51a4..4aa4e25a 100644
--- a/blenderkit/ui_panels.py
+++ b/blenderkit/ui_panels.py
@@ -524,7 +524,7 @@ class VIEW3D_PT_blenderkit_unified(Panel):
w = context.region.width
- if user_preferences.api_key == '':
+ if len(user_preferences.api_key) < 35 and user_preferences.counter >10:
op = layout.operator("wm.url_open", text="Register online",
icon='QUESTION')
op.url = paths.BLENDERKIT_SIGNUP_URL