From 735fdddd09af32f72ebc99f5c33c3b7700225b5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cchristopheseux=E2=80=9D?= <“seuxchristophe@hotmail.fr”> Date: Thu, 11 May 2023 11:12:23 +0200 Subject: [PATCH] fix active index casting --- ui/properties.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/properties.py b/ui/properties.py index 414a93a..ec4e457 100644 --- a/ui/properties.py +++ b/ui/properties.py @@ -501,7 +501,10 @@ class VSETB_PGT_strip_settings(PropertyGroup): @property def active_casting(self): - return self.casting[self.casting_index] + try: + self.casting[self.casting_index] + except KeyError: + return classes = ( Asset,