diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-06-10 08:07:41 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-06-10 08:07:41 +0400 |
commit | d30bb5e02cd1b45c4e9412af050cfe23ef560882 (patch) | |
tree | 294921a6e4e9a14b64f6c8c8c51615e43d5c1693 /io_scene_obj | |
parent | 462db1e0c16794b5bc98a441f6d24059c9892b77 (diff) |
remove unused image copy function.
Diffstat (limited to 'io_scene_obj')
-rw-r--r-- | io_scene_obj/export_obj.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/io_scene_obj/export_obj.py b/io_scene_obj/export_obj.py index 34c6f7a0..594a4167 100644 --- a/io_scene_obj/export_obj.py +++ b/io_scene_obj/export_obj.py @@ -45,22 +45,6 @@ def write_mtl(scene, filepath, path_mode, copy_set, mtl_dict): source_dir = bpy.data.filepath dest_dir = os.path.dirname(filepath) - def copy_image(image): - fn = bpy.path.abspath(image.filepath) - fn = os.path.normpath(fn) - fn_strip = os.path.basename(fn) - - if copy_images: - rel = fn_strip - fn_abs_dest = os.path.join(dest_dir, fn_strip) - if not os.path.exists(fn_abs_dest): - shutil.copy(fn, fn_abs_dest) - elif bpy.path.is_subdir(fn, dest_dir): - rel = os.path.relpath(fn, dest_dir) - else: - rel = fn - return rel - file = open(filepath, "w", encoding="utf8", newline="\n") file.write('# Blender MTL File: %r\n' % os.path.basename(bpy.data.filepath)) file.write('# Material Count: %i\n' % len(mtl_dict)) |