Skip to content
Snippets Groups Projects
Commit d2632fce authored by Vilém Duha's avatar Vilém Duha
Browse files

BlenderKit: enable sorting by -last_upload

and increase addon version to 1.0.30
parent f78b7f96
No related branches found
No related tags found
No related merge requests found
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
bl_info = { bl_info = {
"name": "BlenderKit Asset Library", "name": "BlenderKit Asset Library",
"author": "Vilem Duha, Petr Dlouhy", "author": "Vilem Duha, Petr Dlouhy",
"version": (1, 0, 29), "version": (1, 0, 30),
"blender": (2, 82, 0), "blender": (2, 82, 0),
"location": "View3D > Properties > BlenderKit", "location": "View3D > Properties > BlenderKit",
"description": "Online BlenderKit library (materials, models, brushes and more)", "description": "Online BlenderKit library (materials, models, brushes and more)",
......
...@@ -143,7 +143,7 @@ def timer_update(): # TODO might get moved to handle all blenderkit stuff. ...@@ -143,7 +143,7 @@ def timer_update(): # TODO might get moved to handle all blenderkit stuff.
if preferences.tips_on_start: if preferences.tips_on_start:
ui.get_largest_3dview() ui.get_largest_3dview()
ui.update_ui_size(ui.active_area, ui.active_region) ui.update_ui_size(ui.active_area, ui.active_region)
ui.add_report(text='BlenderKit Tip:' + random.choice(rtips), timeout=12, color=colors.GREEN) ui.add_report(text='BlenderKit Tip: ' + random.choice(rtips), timeout=12, color=colors.GREEN)
# clipboard monitoring to search assets from web # clipboard monitoring to search assets from web
global last_clipboard global last_clipboard
...@@ -748,7 +748,6 @@ class Searcher(threading.Thread): ...@@ -748,7 +748,6 @@ class Searcher(threading.Thread):
# assumes no keywords and no category, thus an empty search that is triggered on start. # assumes no keywords and no category, thus an empty search that is triggered on start.
# orders by last core file upload # orders by last core file upload
requeststring += '+order:-last_upload' requeststring += '+order:-last_upload'
# requeststring += '+order:-created'
elif query.get('author_id') is not None and utils.profile_is_validator(): elif query.get('author_id') is not None and utils.profile_is_validator():
requeststring += '+order:-created' requeststring += '+order:-created'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment