From b3ff38cacdb497df769d44546416cb49bf421677 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 19 Dec 2007 07:44:37 +0000 Subject: [PATCH] Problem with OBJ import found by Mark Ivey - would not import an obj if all verts were int values. --- release/scripts/import_obj.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/release/scripts/import_obj.py b/release/scripts/import_obj.py index 30c4c410434..e5bdc796e16 100644 --- a/release/scripts/import_obj.py +++ b/release/scripts/import_obj.py @@ -542,6 +542,9 @@ def get_float_func(filepath): return lambda f: float(f.replace(',', '.')) elif '.' in line: return float + + # incase all vert values were ints + return float def load_obj(filepath, CLAMP_SIZE= 0.0, CREATE_FGONS= True, CREATE_SMOOTH_GROUPS= True, CREATE_EDGES= True, SPLIT_OBJECTS= True, SPLIT_GROUPS= True, SPLIT_MATERIALS= True, IMAGE_SEARCH=True): '''