diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-05-29 08:15:45 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-05-29 08:15:45 +0400 |
commit | 9fec189e7a5793676675f10eb9484b0bbabc5527 (patch) | |
tree | 176528939b400291143584277b0b48c8ee5816bd /release/scripts/import_obj.py | |
parent | 0059e5118d3bafe097cdbcabcdedbb736abb63f2 (diff) |
remove xreadline, some other small updates (testing new svn)
Diffstat (limited to 'release/scripts/import_obj.py')
-rw-r--r-- | release/scripts/import_obj.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/release/scripts/import_obj.py b/release/scripts/import_obj.py index 8b76335f686..753d8816ff9 100644 --- a/release/scripts/import_obj.py +++ b/release/scripts/import_obj.py @@ -183,7 +183,7 @@ def create_materials(filepath, material_libs, unique_materials, unique_material_ #print '\t\tloading mtl: "%s"' % mtlpath context_material= None mtl= open(mtlpath) - for line in mtl.xreadlines(): + for line in mtl: #.xreadlines(): if line.startswith('newmtl'): context_material_name= line_value(line.split()) if unique_materials.has_key(context_material_name): @@ -536,7 +536,7 @@ def get_float_func(filepath): - weather to replace commas or not ''' file= open(filepath, 'r') - for line in file.xreadlines(): + for line in file: #.xreadlines(): if line.startswith('v'): # vn vt v if ',' in line: return lambda f: float(f.replace(',', '.')) @@ -586,7 +586,7 @@ def load_obj(filepath, CLAMP_SIZE= 0.0, CREATE_FGONS= True, CREATE_SMOOTH_GROUPS print '\tpassing obj file "%s"...' % filepath, time_sub= sys.time() file= open(filepath, 'r') - for line in file.xreadlines(): + for line in file: #.xreadlines(): if line.startswith('v '): line_split= line.split() |