[Bf-extensions-cvs] [85956fd6] master: BlenderKit: enable search style for models (all advanced search will be enabled together with the growth)

Vilem Duha noreply at git.blender.org
Mon May 20 08:37:14 CEST 2019


Commit: 85956fd68ff8ed5fed6152f61168dca51e4a274a
Author: Vilem Duha
Date:   Mon May 20 08:36:40 2019 +0200
Branches: master
https://developer.blender.org/rBA85956fd68ff8ed5fed6152f61168dca51e4a274a

BlenderKit: enable search style for models
(all advanced search will be enabled together with the growth)

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

M	blenderkit/search.py
M	blenderkit/ui_panels.py

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

diff --git a/blenderkit/search.py b/blenderkit/search.py
index 0a401860..84069467 100644
--- a/blenderkit/search.py
+++ b/blenderkit/search.py
@@ -662,6 +662,8 @@ class Searcher(threading.Thread):
             if query.get('category'):
                 nquery['category_subtree'] = query['category']
 
+            if query.get('style'):
+               nquery['model_style'] = query['style']
             # build request manually
             # TODO use real queries
             requeststring = '?query=' + query['keywords'].lower() + '+'
diff --git a/blenderkit/ui_panels.py b/blenderkit/ui_panels.py
index d09e83f3..f173690a 100644
--- a/blenderkit/ui_panels.py
+++ b/blenderkit/ui_panels.py
@@ -279,7 +279,7 @@ def draw_panel_model_search(self, context):
     if props.report == 'Available only in higher plans.':
         layout.operator("wm.url_open", text="Check plans", icon='URL').url = paths.BLENDERKIT_PLANS
 
-    # layout.prop(props, "search_style")
+    layout.prop(props, "search_style")
     # if props.search_style == 'OTHER':
     #     layout.prop(props, "search_style_other")
     # layout.prop(props, "search_engine")
@@ -287,7 +287,7 @@ def draw_panel_model_search(self, context):
     # layout.prop(props, 'append_link', expand=True, icon_only=False)
     # layout.prop(props, 'import_as', expand=True, icon_only=False)
 
-    # layout.prop(props, "search_advanced")
+    #layout.prop(props, "search_advanced")
     if props.search_advanced:
         layout.separator()



More information about the Bf-extensions-cvs mailing list