diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-12-19 10:44:37 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-12-19 10:44:37 +0300 |
commit | b3ff38cacdb497df769d44546416cb49bf421677 (patch) | |
tree | a4934c74929729d8d605064af705a3635d9b0d32 /release/scripts/import_obj.py | |
parent | 0b66838f401f7d70c9fb187032bbb58becd66b61 (diff) |
Problem with OBJ import found by Mark Ivey - would not import an obj if all verts were int values.
Diffstat (limited to 'release/scripts/import_obj.py')
-rw-r--r-- | release/scripts/import_obj.py | 3 |
1 files changed, 3 insertions, 0 deletions
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): ''' |