diff options
Diffstat (limited to 'blenderkit/upload.py')
-rw-r--r-- | blenderkit/upload.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/blenderkit/upload.py b/blenderkit/upload.py index f2f295e5..980fbf7f 100644 --- a/blenderkit/upload.py +++ b/blenderkit/upload.py @@ -810,6 +810,17 @@ class AssetVerificationStatusChange(Operator): def execute(self, context): preferences = bpy.context.preferences.addons['blenderkit'].preferences + # update status in search results for validator's clarity + sr = bpy.context.scene['search results'] + sro = bpy.context.scene['search results orig']['results'] + + for r in sr: + if r['id'] == self.asset_id: + r['verification_status'] = self.state + for r in sro: + if r['id'] == self.asset_id: + r['verificationStatus'] = self.state + thread = threading.Thread(target=verification_status_change_thread, args=(self.asset_id, self.state, preferences.api_key)) thread.start() |