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/search.py')
-rw-r--r--blenderkit/search.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/blenderkit/search.py b/blenderkit/search.py
index 82bb8f58..25d85d88 100644
--- a/blenderkit/search.py
+++ b/blenderkit/search.py
@@ -131,10 +131,15 @@ def update_assets_data(): # updates assets data on scene load.
'assets used',
'assets rated',
]
- for d in dicts:
- for k in d.keys():
- update_ad(d[k])
- # bpy.context.scene['assets used'][ad] = ad
+ for s in bpy.data.scenes:
+ for k in dicts:
+ d = s.get(k)
+ if not d:
+ continue;
+
+ for k in d.keys():
+ update_ad(d[k])
+ # bpy.context.scene['assets used'][ad] = ad
@persistent