From f57c4f81330760e70a490a774b561c912592a1f0 Mon Sep 17 00:00:00 2001 From: ChristopheSeux Date: Tue, 3 Oct 2023 12:25:31 +0200 Subject: [PATCH] avoid missing asset --- operators/spreadsheet.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/operators/spreadsheet.py b/operators/spreadsheet.py index ba36fec..d7b7f1f 100644 --- a/operators/spreadsheet.py +++ b/operators/spreadsheet.py @@ -571,6 +571,14 @@ class VSETB_OT_export_spreadsheet(Operator): asset_castings = [] for asset_casting in strip.vsetb_strip_settings.casting: asset = asset_casting.asset + + #print('------------------------') + + if not asset: + self.report({"WARNING"}, f"The asset {asset_casting['_name']} is missing on strip {strip.name}") + continue + + if not asset.asset_type == cell.name: continue