diff --git a/addons/io_scene_swbf_msh/msh_model_gather.py b/addons/io_scene_swbf_msh/msh_model_gather.py index 89a137d..3495574 100644 --- a/addons/io_scene_swbf_msh/msh_model_gather.py +++ b/addons/io_scene_swbf_msh/msh_model_gather.py @@ -130,7 +130,7 @@ def create_mesh_geometry(mesh: bpy.types.Mesh) -> List[GeometrySegment]: yield mesh.uv_layers.active.data[loop_index].uv.y if segment.colors is not None: - for v in mesh.vertex_colors.active.data[loop_index]: + for v in mesh.vertex_colors.active.data[loop_index].color: yield v vertex_cache_entry = tuple(get_cache_vertex(vertex_index, loop_index)) @@ -158,7 +158,7 @@ def create_mesh_geometry(mesh: bpy.types.Mesh) -> List[GeometrySegment]: segment.texcoords.append(mesh.uv_layers.active.data[loop_index].uv.copy()) if segment.colors is not None: - segment.colors.append([v for v in mesh.vertex_colors.active.data[loop_index].color]) + segment.colors.append(list(mesh.vertex_colors.active.data[loop_index].color)) return new_index