From b1193d5ffc95ec8c724c1167bfc79db1fc29d061 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Sun, 15 Jul 2012 20:31:51 -0400 Subject: [PATCH] bugfix: include all 3 vertices for triangle --- wfobj.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wfobj.py b/wfobj.py index 5a80ff5..e0471a9 100755 --- a/wfobj.py +++ b/wfobj.py @@ -76,8 +76,9 @@ class WFObj(object): add_face(*parts[1:]) elif len(parts[1:]) == 4: # split the quad into two triangles - add_face(*parts[1:3]) + add_face(*parts[1:4]) add_face(parts[1], parts[3], parts[4]) + pass else: raise ValueError('Faces can only have 3 or 4 vertices on line %d' % lineno) elif parts[0] == 'mtllib':