==python scripts==

slight bug fix update to ply importer by Bruce Merry
This commit is contained in:
2006-01-15 20:05:28 +00:00
parent afb0f2ff24
commit 9137d364df

View File

@@ -8,7 +8,7 @@ Tip: 'Import a Stanford PLY file'
""" """
__author__ = "Bruce Merry" __author__ = "Bruce Merry"
__version__ = "0.9" __version__ = "0.91"
__bpydoc__ = """\ __bpydoc__ = """\
This script imports Stanford PLY files into Blender. It supports per-vertex This script imports Stanford PLY files into Blender. It supports per-vertex
normals, and per-face colours and texture coordinates. normals, and per-face colours and texture coordinates.
@@ -249,7 +249,7 @@ def filesel_callback(filename):
mesh.verts[-1].no[1] = ny mesh.verts[-1].no[1] = ny
mesh.verts[-1].no[2] = nz mesh.verts[-1].no[2] = nz
vmap[vkey] = mesh.verts[-1] vmap[vkey] = mesh.verts[-1]
varr.append(mesh.verts[-1]) varr.append(vmap[vkey])
for f in obj["face"]: for f in obj["face"]:
ind = f[findex] ind = f[findex]
nind = len(ind) nind = len(ind)
@@ -277,3 +277,4 @@ def filesel_callback(filename):
meshtools.print_boxed(message) meshtools.print_boxed(message)
Blender.Window.FileSelector(filesel_callback, "Import PLY") Blender.Window.FileSelector(filesel_callback, "Import PLY")