提交 78743806 编写于 作者: M Mr.doob

Blender exporter still works with 2.62 ^^

上级 73283a60
...@@ -83,7 +83,7 @@ TEMPLATE_SCENE_ASCII = """\ ...@@ -83,7 +83,7 @@ TEMPLATE_SCENE_ASCII = """\
{ {
"formatVersion" : 3, "formatVersion" : 3,
"sourceFile" : "%(fname)s", "sourceFile" : "%(fname)s",
"generatedBy" : "Blender 2.60 Exporter", "generatedBy" : "Blender 2.62 Exporter",
"objects" : %(nobjects)s, "objects" : %(nobjects)s,
"geometries" : %(ngeometries)s, "geometries" : %(ngeometries)s,
"materials" : %(nmaterials)s, "materials" : %(nmaterials)s,
...@@ -223,7 +223,7 @@ TEMPLATE_FILE_ASCII = """\ ...@@ -223,7 +223,7 @@ TEMPLATE_FILE_ASCII = """\
"metadata" : "metadata" :
{ {
"formatVersion" : 3, "formatVersion" : 3,
"generatedBy" : "Blender 2.60 Exporter", "generatedBy" : "Blender 2.62 Exporter",
"vertices" : %(nvertex)d, "vertices" : %(nvertex)d,
"faces" : %(nface)d, "faces" : %(nface)d,
"normals" : %(nnormal)d, "normals" : %(nnormal)d,
......
...@@ -253,8 +253,6 @@ def create_mesh_object(name, vertices, materials, face_data, flipYZ, recalculate ...@@ -253,8 +253,6 @@ def create_mesh_object(name, vertices, materials, face_data, flipYZ, recalculate
active_texture = materials[faceMaterials[fi]].active_texture active_texture = materials[faceMaterials[fi]].active_texture
if active_texture: if active_texture:
# this property doesn't exist anymore in Blender 2.60
#uv_face.use_image = True
uv_face.image = active_texture.image uv_face.image = active_texture.image
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册