提交 97e68411 编写于 作者: M migvel

Blender exporter: changed me.faces by me.tessfaces as reflected in Blender api.

上级 3b4457e5
......@@ -146,7 +146,7 @@ def create_mesh_object(name, vertices, materials, face_data, flipYZ, recalculate
# - to preserve vertex normals from the original data
# call me.update() before setting them
me.faces[fi].use_smooth = True
me.tessfaces[fi].use_smooth = True
if not recalculate_normals:
for j in range(len(vertexNormals[fi])):
......@@ -168,7 +168,7 @@ def create_mesh_object(name, vertices, materials, face_data, flipYZ, recalculate
#y = -y
#z = -z
vi = me.faces[fi].vertices[j]
vi = me.tessfaces[fi].vertices[j]
me.vertices[vi].normal.x = x
me.vertices[vi].normal.y = y
......@@ -273,7 +273,7 @@ def create_mesh_object(name, vertices, materials, face_data, flipYZ, recalculate
if faceMaterials[fi] >= 0:
me.faces[fi].material_index = faceMaterials[fi]
me.tessfaces[fi].material_index = faceMaterials[fi]
# Create a new object
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册