Fixed problems when using %VARIANT:% in the 3D models variants

Fixes #191
This commit is contained in:
Salvador E. Tropea 2022-04-19 18:44:52 -03:00
parent 97656ef1fc
commit bf73c11821
1 changed files with 1 additions and 1 deletions

View File

@ -201,7 +201,7 @@ class Base3DOptions(VariantOptions):
if match:
# Check if this is for the current variant
var = match.group(1)
slots = match.group(2).split(',')
slots = match.group(2).split(',') if match.group(2) else []
if var == self.variant.name:
# Disable the unused models adding bogus text to the end
slots = [int(v) for v in slots]