From 685b5e6f59cc71f75da1414249cec64c985524fd Mon Sep 17 00:00:00 2001 From: Thomas FORGIONE Date: Mon, 21 Nov 2016 15:30:05 +0100 Subject: [PATCH] Ignore empty string --- modelconverter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modelconverter.py b/modelconverter.py index c5d8510..fad8973 100755 --- a/modelconverter.py +++ b/modelconverter.py @@ -97,7 +97,8 @@ class OBJParser(ModelParser): for i in range(len(splits)): for j in range(len(splits[i])): - splits[i][j] = str(int(splits[i][j]) - 1) + if splits[i][j] is not '': + splits[i][j] = str(int(splits[i][j]) - 1) self.addFace(Face().from_array(splits))