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:
authorVilém Duha <vilda.novak@gmail.com>2019-10-10 14:39:02 +0300
committerVilém Duha <vilda.novak@gmail.com>2019-10-10 16:14:57 +0300
commit8d0c02ea6f17b2eeabf369c920be0852e9c9b8f7 (patch)
tree281a9c0066a2f208ba119f3dc034d08a8f988aca
parentc452aa271035f95701dbb8583185e7064da8aad2 (diff)
BlenderKit: Search similar and Search by author fixed
- operations had properties that got saved, which caused the operators to influence each other.
-rw-r--r--blenderkit/search.py18
1 files changed, 13 insertions, 5 deletions
diff --git a/blenderkit/search.py b/blenderkit/search.py
index 11a2d5c8..3f381b92 100644
--- a/blenderkit/search.py
+++ b/blenderkit/search.py
@@ -129,7 +129,6 @@ def timer_update(): # TODO might get moved to handle all blenderkit stuff.
for thread in search_threads: # TODO this doesn't check all processes when one gets removed,
# but most of the time only one is running anyway
if not thread[0].is_alive():
- print('parsing')
search_threads.remove(thread) #
icons_dir = thread[1]
scene = bpy.context.scene
@@ -1102,6 +1101,7 @@ class SearchOperator(Operator):
"""Tooltip"""
bl_idname = "view3d.blenderkit_search"
bl_label = "BlenderKit asset search"
+ bl_description = "Search online for assets"
bl_options = {'REGISTER', 'UNDO', 'INTERNAL'}
own: BoolProperty(name="own assets only",
description="Find all own assets",
@@ -1110,21 +1110,29 @@ class SearchOperator(Operator):
category: StringProperty(
name="category",
description="search only subtree of this category",
- default="")
+ default="",
+ options = {'SKIP_SAVE'}
+ )
author_id: StringProperty(
name="Author ID",
description="Author ID - search only assets by this author",
- default="")
+ default="",
+ options = {'SKIP_SAVE'}
+ )
get_next: BoolProperty(name="next page",
description="get next page from previous search",
- default=False)
+ default=False,
+ options = {'SKIP_SAVE'}
+ )
keywords: StringProperty(
name="Keywords",
description="Keywords",
- default="")
+ default="",
+ options = {'SKIP_SAVE'}
+ )
@classmethod
def poll(cls, context):