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:
authorCampbell Barton <ideasman42@gmail.com>2006-07-16 17:54:33 +0400
committerCampbell Barton <ideasman42@gmail.com>2006-07-16 17:54:33 +0400
commit13e4883b9667805d212687ccd0318bc29efdfd90 (patch)
treee85f7d349aab998cab4b4b052d5f79e4f17d5613
parenta33bd50108bbbb51cbffd1fb81a20dfe2477ccaf (diff)
Bugfix only for a queer bug that occurs (in non of my previous tests) where an edge is added with the same verts- an invalid edge of course.
-rw-r--r--release/scripts/obj_import.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/release/scripts/obj_import.py b/release/scripts/obj_import.py
index d80509ba928..91cd19e03fb 100644
--- a/release/scripts/obj_import.py
+++ b/release/scripts/obj_import.py
@@ -705,9 +705,11 @@ def load_obj(\
for edgeVerts, users in edgeUsers.iteritems():
if users:
- ed= currentMesh.addEdge(\
- currentMesh.verts[edgeVerts[0]],\
- currentMesh.verts[edgeVerts[1]])
+ i1,i2= edgeVerts
+ if i1!=i2:
+ ed= currentMesh.addEdge(\
+ currentMesh.verts[i1],\
+ currentMesh.verts[i2])
ed.flag|= EDGE_FGON_FLAG