From cc3a9c39fcdadd08b4ad910b55e8d3f623ac3d43 Mon Sep 17 00:00:00 2001 From: Colin Basnett Date: Sat, 14 Sep 2024 02:38:02 -0700 Subject: [PATCH] Fixed vertex color lookup --- io_scene_ase/blender_manifest.toml | 2 +- io_scene_ase/builder.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/io_scene_ase/blender_manifest.toml b/io_scene_ase/blender_manifest.toml index 7a53612..36d4d50 100644 --- a/io_scene_ase/blender_manifest.toml +++ b/io_scene_ase/blender_manifest.toml @@ -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 " diff --git a/io_scene_ase/builder.py b/io_scene_ase/builder.py index 903471d..cfa2ba8 100644 --- a/io_scene_ase/builder.py +++ b/io_scene_ase/builder.py @@ -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)