1 Commits
2.1.1 ... 2.1.2

Author SHA1 Message Date
Colin Basnett
cc3a9c39fc Fixed vertex color lookup 2024-09-14 02:39:46 -07:00
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
schema_version = "1.0.0" schema_version = "1.0.0"
id = "io_scene_ase" id = "io_scene_ase"
version = "2.1.1" version = "2.1.2"
name = "ASCII Scene Export (.ase)" name = "ASCII Scene Export (.ase)"
tagline = "Export .ase files used in Unreal Engine 1 & 2" tagline = "Export .ase files used in Unreal Engine 1 & 2"
maintainer = "Colin Basnett <cmbasnett@gmail.com>" 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 color_attribute = None
match options.vertex_color_mode: match options.vertex_color_mode:
case 'ACTIVE': case 'ACTIVE':
color_attribute = mesh_data.color_attributes[active_color_name] color_attribute = mesh_data.color_attributes.get(active_color_name, None)
case 'EXPLICIT': case 'EXPLICIT':
color_attribute = mesh_data.color_attributes.get(options.vertex_color_attribute, None) color_attribute = mesh_data.color_attributes.get(options.vertex_color_attribute, None)