for index, offset in zip(s.indices, s.pos_list):
try:
- vertex_index=base.indices[index]
+ vertex_index=vertex_map[base.indices[index]]
bl.shapeKeyAssign(new_shape_key, vertex_index,
mesh.verts[vertex_index].co+
bl.createVector(*convert_coord(offset)))
face_map, tex_dir)
# enter Edit Mode
- bl.enterEditMode()
+ #bl.enterEditMode()
# crete shape key
__importShape(meshObject, io, vertex_map)
# exit Edit Mode
- bl.exitEditMode()
+ #bl.exitEditMode()
mesh.update()
material_offset+=16