diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-07-11 02:57:27 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-07-11 02:57:27 +0400 |
commit | 488e1da935d55330be55eb30b4605b993dd65dbd (patch) | |
tree | d4437d5e74e962482a4a6aa5336212c257f0245e /io_mesh_ply | |
parent | 8012053e1e178c8cabb133e05dc1e36d52908fa7 (diff) |
cleanup
- remove/comment unused variables
- remove unused imports
- fixed some bugs using incorrect variables
Diffstat (limited to 'io_mesh_ply')
-rw-r--r-- | io_mesh_ply/import_ply.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/io_mesh_ply/import_ply.py b/io_mesh_ply/import_ply.py index 3d0f2970..6d4326e4 100644 --- a/io_mesh_ply/import_ply.py +++ b/io_mesh_ply/import_ply.py @@ -209,8 +209,8 @@ import bpy def load_ply(filepath): import time - from bpy_extras.io_utils import unpack_list, unpack_face_list - from bpy_extras.image_utils import load_image + from bpy_extras.io_utils import unpack_face_list + # from bpy_extras.image_utils import load_image # UNUSED t = time.time() obj_spec, obj = read(filepath) @@ -225,7 +225,7 @@ def load_ply(filepath): for el in obj_spec.specs: if el.name == b'vertex': - vindices = vindices_x, vindices_y, vindices_z = el.index(b'x'), el.index(b'y'), el.index(b'z') + vindices_x, vindices_y, vindices_z = el.index(b'x'), el.index(b'y'), el.index(b'z') # noindices = (el.index('nx'), el.index('ny'), el.index('nz')) # if -1 in noindices: noindices = None uvindices = (el.index(b's'), el.index(b't')) |