BlenerKit: Enable search by author.
This commit is contained in:
parent
654c538f87
commit
88d0e75f1f
|
@ -1238,7 +1238,6 @@ class BlenderKitAddonPreferences(AddonPreferences):
|
|||
default_global_dict = paths.default_global_dict()
|
||||
|
||||
enable_oauth = False
|
||||
enable_author_search = False
|
||||
|
||||
api_key: StringProperty(
|
||||
name="BlenderKit API Key",
|
||||
|
|
|
@ -1010,7 +1010,7 @@ def search(category='', get_next=False, author_id=''):
|
|||
if category != '':
|
||||
query['category_subtree'] = category
|
||||
|
||||
if author_id != '' and user_preferences.enable_author_search:
|
||||
if author_id != '':
|
||||
query['author_id'] = author_id
|
||||
|
||||
# utils.p('searching')
|
||||
|
|
Loading…
Reference in New Issue