Fixed a bug where weighting information would be lost when exporting non-raw mesh data

This commit is contained in:
Colin Basnett
2022-05-19 17:32:21 -07:00
parent 0d779b8174
commit a1bbf4fb1e

View File

@@ -162,7 +162,7 @@ class PskBuilder(object):
mesh_object.matrix_world = input_mesh_object.matrix_world mesh_object.matrix_world = input_mesh_object.matrix_world
# Copy the vertex groups # Copy the vertex groups
for vertex_group in mesh_object.vertex_groups: for vertex_group in input_mesh_object.vertex_groups:
mesh_object.vertex_groups.new(name=vertex_group.name) mesh_object.vertex_groups.new(name=vertex_group.name)
# Reactivate previously active armature modifiers # Reactivate previously active armature modifiers