Skip to content

Commit cc3a9c3

Browse files
committed
Fixed vertex color lookup
1 parent 4ca686b commit cc3a9c3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

io_scene_ase/blender_manifest.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
schema_version = "1.0.0"
22
id = "io_scene_ase"
3-
version = "2.1.1"
3+
version = "2.1.2"
44
name = "ASCII Scene Export (.ase)"
55
tagline = "Export .ase files used in Unreal Engine 1 & 2"
66
maintainer = "Colin Basnett <cmbasnett@gmail.com>"

io_scene_ase/builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def build_ase(context: Context, options: ASEBuildOptions, objects: Iterable[Obje
179179
color_attribute = None
180180
match options.vertex_color_mode:
181181
case 'ACTIVE':
182-
color_attribute = mesh_data.color_attributes[active_color_name]
182+
color_attribute = mesh_data.color_attributes.get(active_color_name, None)
183183
case 'EXPLICIT':
184184
color_attribute = mesh_data.color_attributes.get(options.vertex_color_attribute, None)
185185

0 commit comments

Comments
 (0)