Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVilém Duha <vilda.novak@gmail.com>2020-08-23 11:42:00 +0300
committerVilém Duha <vilda.novak@gmail.com>2020-08-23 11:42:00 +0300
commit91b8f51c8c10084b33cf40284070f359067538e9 (patch)
treed337ef3079d07a25ac3e868fd0b479b4f2f4fac9 /blenderkit
parent6ba9c816f3d8b342633cce3f874876f19b19118e (diff)
parent97be901f0772a0e57e2c8c99b9b6336b6be8aec5 (diff)
Merge branch 'blender-v2.90-release'
# Conflicts: # object_collection_manager/__init__.py
Diffstat (limited to 'blenderkit')
-rw-r--r--blenderkit/ratings.py6
-rw-r--r--blenderkit/upload.py2
2 files changed, 6 insertions, 2 deletions
diff --git a/blenderkit/ratings.py b/blenderkit/ratings.py
index 7d246a9f..35c3bf3c 100644
--- a/blenderkit/ratings.py
+++ b/blenderkit/ratings.py
@@ -289,8 +289,10 @@ def update_ratings_work_hours_ui_1_5(self, context):
# return
bpy.ops.wm.blenderkit_login('INVOKE_DEFAULT',
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 = float(self.update_ratings_work_hours_ui_1_5)
+ self.rating_work_hours_ui_1_5 = '0'
+ # 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)
diff --git a/blenderkit/upload.py b/blenderkit/upload.py
index 14fbe6db..8e547cbc 100644
--- a/blenderkit/upload.py
+++ b/blenderkit/upload.py
@@ -816,6 +816,8 @@ class AssetVerificationStatusChange(Operator):
def execute(self, context):
preferences = bpy.context.preferences.addons['blenderkit'].preferences
+ if not bpy.context.scene['search results']:
+ return;
# update status in search results for validator's clarity
sr = bpy.context.scene['search results']
sro = bpy.context.scene['search results orig']['results']