bugfix [#24882] fbx exporter Krash, screw objects and animations

fixed remaining issue with win32 paths.
This commit is contained in:
Campbell Barton 2010-11-24 15:57:59 +00:00
parent 6470078bca
commit 0daee3b8ed

@ -1207,8 +1207,10 @@ def save(operator, context, filepath="",
fn_abs_dest = os.path.join(basepath, fn_strip)
if not os.path.exists(fn_abs_dest):
shutil.copy(fn, fn_abs_dest)
else:
elif bpy.path.is_subdir(fn, basepath):
rel = os.path.relpath(fn, basepath)
else:
rel = fn
return (rel, fn_strip)
@ -2887,6 +2889,8 @@ Takes: {''')
# # copy_images( basepath, [ tex[1] for tex in textures if tex[1] != None ])
# bpy.util.copy_images( [ tex[1] for tex in textures if tex[1] != None ], basepath)
file.close()
print('export finished in %.4f sec.' % (time.clock() - start_time))
return {'FINISHED'}