Fixed vertex color lookup

This commit is contained in:
Colin Basnett
2024-09-14 02:38:02 -07:00
parent 4ca686bd53
commit cc3a9c39fc
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
schema_version = "1.0.0"
id = "io_scene_ase"
version = "2.1.1"
version = "2.1.2"
name = "ASCII Scene Export (.ase)"
tagline = "Export .ase files used in Unreal Engine 1 & 2"
maintainer = "Colin Basnett <cmbasnett@gmail.com>"

View File

@@ -179,7 +179,7 @@ def build_ase(context: Context, options: ASEBuildOptions, objects: Iterable[Obje
color_attribute = None
match options.vertex_color_mode:
case 'ACTIVE':
color_attribute = mesh_data.color_attributes[active_color_name]
color_attribute = mesh_data.color_attributes.get(active_color_name, None)
case 'EXPLICIT':
color_attribute = mesh_data.color_attributes.get(options.vertex_color_attribute, None)