Apparently mathutils.Vector can refer to external data, in this case the
mesh's UV coordinates, which gets deleted with the mesh. Copy the values
to make sure they are retained.
self.tan = None
self.bino = None
self.index = vertex.index
- self.co = vertex.co
- self.normal = vertex.normal
+ self.co = mathutils.Vector(vertex.co)
+ self.normal = mathutils.Vector(vertex.normal)
self.flag = False
self.edges = []
self.faces = []
else:
self._layer = arg
self.name = arg.name
- self.uvs = [d.uv for d in self.data]
+ self.uvs = [mathutils.Vector(d.uv) for d in self.data]
self.unit = None
self.hidden = False