Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
blender-addons
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blender
blender-addons
Commits
d2632fce
Commit
d2632fce
authored
5 years ago
by
Vilém Duha
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
blenderkit/__init__.py
+1
-1
1 addition, 1 deletion
blenderkit/__init__.py
blenderkit/search.py
+1
-2
1 addition, 2 deletions
blenderkit/search.py
with
2 additions
and
3 deletions
blenderkit/__init__.py
+
1
−
1
View file @
d2632fce
...
@@ -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)
"
,
...
...
This diff is collapsed.
Click to expand it.
blenderkit/search.py
+
1
−
2
View file @
d2632fce
...
@@ -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
'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment