diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-11-24 18:57:59 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-11-24 18:57:59 +0300 |
commit | 0daee3b8ed6dcce28a310f87f392c7eae0e607d1 (patch) | |
tree | 215aec7146951acf4a184ac9ed6a0561578e4c07 /release | |
parent | 6470078bca543f3cc03f5d32d84a93a7eae54c82 (diff) |
bugfix [#24882] fbx exporter Krash, screw objects and animations
fixed remaining issue with win32 paths.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/op/io_scene_fbx/export_fbx.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/release/scripts/op/io_scene_fbx/export_fbx.py b/release/scripts/op/io_scene_fbx/export_fbx.py index d1f5c8a6d63..d3bd65f187b 100644 --- a/release/scripts/op/io_scene_fbx/export_fbx.py +++ b/release/scripts/op/io_scene_fbx/export_fbx.py @@ -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'} |