Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Musgrove <LetterRip@gmail.com>2006-01-15 23:05:28 +0300
committerTom Musgrove <LetterRip@gmail.com>2006-01-15 23:05:28 +0300
commit9137d364df2ad81bd22f954eafe94bb23ea6945c (patch)
treea48712be5ffcc5fa33286cf5a95a104975951bb8
parentafb0f2ff24923333b77bdec4da074b64d0d3e507 (diff)
==python scripts==
slight bug fix update to ply importer by Bruce Merry
-rw-r--r--release/scripts/ply_import.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/release/scripts/ply_import.py b/release/scripts/ply_import.py
index 78f5a14f955..4a5a3e52df3 100644
--- a/release/scripts/ply_import.py
+++ b/release/scripts/ply_import.py
@@ -8,7 +8,7 @@ Tip: 'Import a Stanford PLY file'
"""
__author__ = "Bruce Merry"
-__version__ = "0.9"
+__version__ = "0.91"
__bpydoc__ = """\
This script imports Stanford PLY files into Blender. It supports per-vertex
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[2] = nz
vmap[vkey] = mesh.verts[-1]
- varr.append(mesh.verts[-1])
+ varr.append(vmap[vkey])
for f in obj["face"]:
ind = f[findex]
nind = len(ind)
@@ -277,3 +277,4 @@ def filesel_callback(filename):
meshtools.print_boxed(message)
Blender.Window.FileSelector(filesel_callback, "Import PLY")
+