python api: rna array slices now return tuples rather then lists (fits with recent change made to mathutils).

minor improvements/cleanup to exporters.
This commit is contained in:
2011-01-02 09:54:44 +00:00
parent a6a2512f47
commit f101e59e09
5 changed files with 34 additions and 56 deletions

View File

@@ -542,7 +542,7 @@ def save(operator, context, filepath="",
print('\nFBX export starting... %r' % filepath)
start_time = time.clock()
try:
file = open(filepath, 'w')
file = open(filepath, 'w', encoding='utf8')
except:
return False
@@ -1636,13 +1636,13 @@ def save(operator, context, filepath="",
# workaround, since uf.uv iteration is wrong atm
for uv in uf.uv:
if i==-1:
file.write('%.6f,%.6f' % tuple(uv))
file.write('%.6f,%.6f' % uv[:])
i=0
else:
if i==7:
file.write('\n\t\t\t ')
i=0
file.write(',%.6f,%.6f' % tuple(uv))
file.write(',%.6f,%.6f' % uv[:])
i+=1
ii+=1 # One more UV