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
97be901f
Commit
97be901f
authored
4 years ago
by
Vilém Duha
Browse files
Options
Downloads
Patches
Plain Diff
BlenderKit: fix fast rating operator
also fix one small bug when uploading
parent
497e97cf
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/ratings.py
+4
-2
4 additions, 2 deletions
blenderkit/ratings.py
blenderkit/upload.py
+2
-0
2 additions, 0 deletions
blenderkit/upload.py
with
6 additions
and
2 deletions
blenderkit/ratings.py
+
4
−
2
View file @
97be901f
...
@@ -289,8 +289,10 @@ def update_ratings_work_hours_ui_1_5(self, context):
...
@@ -289,8 +289,10 @@ def update_ratings_work_hours_ui_1_5(self, context):
# return
# return
bpy
.
ops
.
wm
.
blenderkit_login
(
'
INVOKE_DEFAULT
'
,
bpy
.
ops
.
wm
.
blenderkit_login
(
'
INVOKE_DEFAULT
'
,
message
=
'
Please login/signup to rate assets. Clicking OK takes you to web login.
'
)
message
=
'
Please login/signup to rate assets. Clicking OK takes you to web login.
'
)
self
.
update_ratings_work_hours_ui_1_5
=
'
0
'
self
.
rating_work_hours_ui_1_5
=
'
0
'
self
.
rating_work_hours
=
float
(
self
.
update_ratings_work_hours_ui_1_5
)
# print('updating 1-5')
# print(float(self.rating_work_hours_ui_1_5))
self
.
rating_work_hours
=
float
(
self
.
rating_work_hours_ui_1_5
)
...
...
This diff is collapsed.
Click to expand it.
blenderkit/upload.py
+
2
−
0
View file @
97be901f
...
@@ -816,6 +816,8 @@ class AssetVerificationStatusChange(Operator):
...
@@ -816,6 +816,8 @@ class AssetVerificationStatusChange(Operator):
def
execute
(
self
,
context
):
def
execute
(
self
,
context
):
preferences
=
bpy
.
context
.
preferences
.
addons
[
'
blenderkit
'
].
preferences
preferences
=
bpy
.
context
.
preferences
.
addons
[
'
blenderkit
'
].
preferences
if
not
bpy
.
context
.
scene
[
'
search results
'
]:
return
;
# update status in search results for validator's clarity
# update status in search results for validator's clarity
sr
=
bpy
.
context
.
scene
[
'
search results
'
]
sr
=
bpy
.
context
.
scene
[
'
search results
'
]
sro
=
bpy
.
context
.
scene
[
'
search results orig
'
][
'
results
'
]
sro
=
bpy
.
context
.
scene
[
'
search results orig
'
][
'
results
'
]
...
...
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