Fix convert-mesh script
This commit is contained in:
parent
968d79df7b
commit
ef3359add1
1 changed files with 3 additions and 3 deletions
|
|
@ -62,11 +62,11 @@ smooth_index = {}
|
|||
def append_vertex(v, n):
|
||||
vertex_coords.append((v.co.x, v.co.y, v.co.z))
|
||||
vertex_normals.append((n.x, n.y, n.z))
|
||||
if colors:
|
||||
if colors is not None:
|
||||
vertex_colors.append(tuple(colors[li].color))
|
||||
if texcoords:
|
||||
if texcoords is not None:
|
||||
vertex_texcoords.append((texcoords[li].uv[0], 1.0 - texcoords[li].uv[1]))
|
||||
if armature:
|
||||
if armature is not None:
|
||||
weights = []
|
||||
for g in v.groups:
|
||||
name = obj.vertex_groups[g.group].name
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue