Problem with OBJ import found by Mark Ivey - would not import an obj if all verts...
authorCampbell Barton <ideasman42@gmail.com>
Wed, 19 Dec 2007 07:44:37 +0000 (07:44 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 19 Dec 2007 07:44:37 +0000 (07:44 +0000)
release/scripts/import_obj.py

index 30c4c410434c746d723bd1757b33b23367a43b21..e5bdc796e16b6efb7654c6d949e27cbcd1995e0c 100644 (file)
@@ -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):
        '''