[Bf-extensions-cvs] [8d0c02ea] master: BlenderKit: Search similar and Search by author fixed - operations had properties that got saved, which caused the operators to influence each other.

Vilém Duha noreply at git.blender.org
Thu Oct 10 16:18:57 CEST 2019


Commit: 8d0c02ea6f17b2eeabf369c920be0852e9c9b8f7
Author: Vilém Duha
Date:   Thu Oct 10 13:39:02 2019 +0200
Branches: master
https://developer.blender.org/rBA8d0c02ea6f17b2eeabf369c920be0852e9c9b8f7

BlenderKit: Search similar and Search by author fixed
 - operations had properties that got saved, which caused the operators to influence each other.

===================================================================

M	blenderkit/search.py

===================================================================

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):



More information about the Bf-extensions-cvs mailing list