[Bf-extensions-cvs] [cd712f0] master: Fix T38231: Export/import separate vertices (bunch of points) via Wavefront OBJ do not works
Bastien Montagne
noreply at git.blender.org
Wed Jan 15 14:21:15 CET 2014
Commit: cd712f003bab0b674369214e1c45a90642a97399
Author: Bastien Montagne
Date: Wed Jan 15 14:21:10 2014 +0100
https://developer.blender.org/rBAcd712f003bab0b674369214e1c45a90642a97399
Fix T38231: Export/import separate vertices (bunch of points) via Wavefront OBJ do not works
===================================================================
M io_scene_obj/import_obj.py
===================================================================
diff --git a/io_scene_obj/import_obj.py b/io_scene_obj/import_obj.py
index fc3eb9c..a75d4ed 100644
--- a/io_scene_obj/import_obj.py
+++ b/io_scene_obj/import_obj.py
@@ -379,8 +379,8 @@ def split_mesh(verts_loc, faces, unique_materials, filepath, SPLIT_OB_OR_GROUP):
filename = os.path.splitext((os.path.basename(filepath)))[0]
- if not SPLIT_OB_OR_GROUP:
- # use the filename for the object name since we arnt chopping up the mesh.
+ if not SPLIT_OB_OR_GROUP or not faces:
+ # use the filename for the object name since we aren't chopping up the mesh.
return [(verts_loc, faces, unique_materials, filename)]
def key_to_name(key):
More information about the Bf-extensions-cvs
mailing list