Fixed multi-object export texture corruption error

This fixes the bug where exporting 3 or more objects would result in
one or more objects have corrupted texture coordinates
This commit is contained in:
Colin Basnett
2022-08-15 21:39:13 -07:00
parent ce6ae4a64c
commit 94b3554f2f
3 changed files with 2 additions and 2 deletions

View File

@@ -138,7 +138,7 @@ class ASEBuilder(object):
geometry_object.vertex_colors.append(tuple(color[0:3]))
# Update data offsets for next iteration
geometry_object.texture_vertex_offset = len(mesh_data.loops)
geometry_object.texture_vertex_offset += len(mesh_data.loops)
geometry_object.vertex_offset = len(geometry_object.vertices)
if len(ase.geometry_objects) == 0: