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

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-01-15 08:28:36 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-01-15 08:28:36 +0400
commit53fbbe43ac770058a87dac0015b765923185fb48 (patch)
treea6dc33853fa903e71d63b00cb63dd76cdc034828 /io_scene_obj
parent85596dadde943575db642b21d73b390822e90bae (diff)
Fix OBJ import loading lines with tex coords (ignore them)
Diffstat (limited to 'io_scene_obj')
-rw-r--r--io_scene_obj/import_obj.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/io_scene_obj/import_obj.py b/io_scene_obj/import_obj.py
index a2957522..fc3eb9cb 100644
--- a/io_scene_obj/import_obj.py
+++ b/io_scene_obj/import_obj.py
@@ -991,7 +991,8 @@ def load(operator, context, filepath,
# isline = line_start == b'l' # UNUSED
for v in line_split:
- vert_loc_index = int(v) - 1
+ obj_vert = v.split(b'/')
+ vert_loc_index = int(obj_vert[0]) - 1
# Make relative negative vert indices absolute
if vert_loc_index < 0: