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-05-20 15:02:08 +0300
committerVilem Duha <vilem.duha@gmail.com>2019-05-21 00:03:00 +0300
commit81e8607179868c494e2b1d0d14a2f7f5fa30dfaf (patch)
tree65da6f9ebc6314fcac252df04f57d29ad4e68c5b /blenderkit/ui_panels.py
parentb37ee1a95a2b166b3713b9a18c793f2936da5484 (diff)
BlenderKit: replace freebies category with free_only checkbox. Helps searching free models.
Diffstat (limited to 'blenderkit/ui_panels.py')
-rw-r--r--blenderkit/ui_panels.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/blenderkit/ui_panels.py b/blenderkit/ui_panels.py
index f173690a..664aa0c8 100644
--- a/blenderkit/ui_panels.py
+++ b/blenderkit/ui_panels.py
@@ -280,6 +280,7 @@ def draw_panel_model_search(self, context):
layout.operator("wm.url_open", text="Check plans", icon='URL').url = paths.BLENDERKIT_PLANS
layout.prop(props, "search_style")
+ layout.prop(props, "free_only")
# if props.search_style == 'OTHER':
# layout.prop(props, "search_style_other")
# layout.prop(props, "search_engine")
@@ -750,9 +751,9 @@ def draw_panel_categories(self, context):
op.category = ''
cats = categories.get_category(wm['bkit_categories'], cat_path=acat)
# draw freebies only in models parent category
- if ui_props.asset_type == 'MODEL' and len(acat) == 1:
- op = col.operator('view3d.blenderkit_asset_bar', text='freebies')
- op.free_only = True
+ # if ui_props.asset_type == 'MODEL' and len(acat) == 1:
+ # op = col.operator('view3d.blenderkit_asset_bar', text='freebies')
+ # op.free_only = True
for c in cats['children']:
if c['assetCount'] > 0: