[Bf-extensions-cvs] [f4db75e6] master: BlenderKit: fix search by author to clean up search keywords.

Vilém Duha noreply at git.blender.org
Tue Jul 23 09:51:15 CEST 2019


Commit: f4db75e60f3532a3774f182aa72f4308be828f43
Author: Vilém Duha
Date:   Tue Jul 23 09:11:55 2019 +0200
Branches: master
https://developer.blender.org/rBAf4db75e60f3532a3774f182aa72f4308be828f43

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