if vertex.__class__==Vertex:
self.uvs = vertex.uvs[:]
self.tan = vertex.tan
+ self.groups = [VertexGroup(g) for g in vertex.groups]
else:
self.uvs = []
self.tan = None
+ self.groups = []
self.index = vertex.index
self.co = mathutils.Vector(vertex.co)
self.normal = mathutils.Vector(vertex.normal)
self.flag = False
self.edges = []
self.faces = []
- self.groups = vertex.groups[:]
def __cmp__(self, other):
if other is None:
self.vertices = [Vertex(v) for v in mesh.vertices]
if self.vertex_groups:
for v in self.vertices:
- v.groups = [VertexGroup(g) for g in v.groups]
+ v.groups = [VertexGroup(g) for g in mesh.vertices[v.index].groups]
self.faces = [Face(f) for f in mesh.polygons]
self.edges = [Edge(e) for e in mesh.edges]