[Bf-extensions-cvs] [75bbbdd0] blender-v2.80-release: BlenderKit: fix search by author to clean up search keywords.

Vilém Duha noreply at git.blender.org
Wed Jul 24 16:27:18 CEST 2019


Commit: 75bbbdd06063e4601de42e0550e28e5d540de237
Author: Vilém Duha
Date:   Tue Jul 23 09:11:55 2019 +0200
Branches: blender-v2.80-release
https://developer.blender.org/rBA75bbbdd06063e4601de42e0550e28e5d540de237

BlenderKit: fix search by author to clean up search keywords.

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

M	blenderkit/ui.py

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

diff --git a/blenderkit/ui.py b/blenderkit/ui.py
index b7d83dca..40a10904 100644
--- a/blenderkit/ui.py
+++ b/blenderkit/ui.py
@@ -1565,6 +1565,8 @@ class AssetBarOperator(bpy.types.Operator):
             asset_data = sr[ui_props.active_index]
             a = asset_data['author_id']
             if a is not None:
+                sprops = utils.get_search_props()
+                sprops.search_keywords = ''
                 utils.p('author:', a)
                 search.search(author_id=a)
             return {'RUNNING_MODAL'}



More information about the Bf-extensions-cvs mailing list