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:
Diffstat (limited to 'blenderkit/ui.py')
-rw-r--r--blenderkit/ui.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/blenderkit/ui.py b/blenderkit/ui.py
index 7935363d..80b7ef2c 100644
--- a/blenderkit/ui.py
+++ b/blenderkit/ui.py
@@ -1033,9 +1033,10 @@ def is_rating_possible():
m = ao.active_material
if m is not None:
ad = m.get('asset_data')
- if ad is not None:
+ if ad is not None and ad.get('assetBaseId'):
rated = bpy.context.scene['assets rated'].get(ad['assetBaseId'])
- return True, rated, m, ad
+ if rated:
+ return True, rated, m, ad
# if t>2 and t<2.5:
# ui_props.rating_on = False