Page MenuHome

Import obj with "keep vertex order" option on does not work
Closed, ResolvedPublic

Description

System Information
Operating system and graphics card
Windows 7 64 bit
NVIDIA GeForce GTX 780

Blender Version
Broken: blender-2.75-de6b4dc-win64
Worked: (optional)

Short description of error
When trying to import an obj with "keep vertex order" option on I get the following error message. Note that "Split" option still works.

Traceback (most recent call last):

File "C:\Users\daniel.bystedt\Downloads\blender-2.75-de6b4dc-win64\blender-2.75-de6b4dc-win64\2.75\scripts\addons\io_scene_obj\__init__.py", line 149, in execute
  return import_obj.load(self, context, **keywords)
File "C:\Users\daniel.bystedt\Downloads\blender-2.75-de6b4dc-win64\blender-2.75-de6b4dc-win64\2.75\scripts\addons\io_scene_obj\import_obj.py", line 1113, in load
  for data in split_mesh(verts_loc, faces, unique_materials, filepath, SPLIT_OB_OR_GROUP):
File "C:\Users\daniel.bystedt\Downloads\blender-2.75-de6b4dc-win64\blender-2.75-de6b4dc-win64\2.75\scripts\addons\io_scene_obj\import_obj.py", line 374, in split_mesh
  return [(verts_loc, faces, unique_materials, filename, bool(verts_nor), bool(verts_tex))]

NameError: name 'verts_nor' is not defined

location: <unknown location>:-1

It works fine to import obj's with "split" option on in the import obj settings

Exact steps for others to reproduce the error
Based on a (as simple as possible) attached .blend file with minimum amount of steps

  1. choose file>import>wavefront (.obj).
  2. In the lower left corner of the UI, press the button "Keep Vert Order".
  3. select an obj file and press import OBJ in the top right corner of the UI.

You will get an error message.