Skip to content
Snippets Groups Projects
Commit d30bb5e0 authored by Campbell Barton's avatar Campbell Barton
Browse files

remove unused image copy function.

parent 462db1e0
No related branches found
No related tags found
No related merge requests found
...@@ -45,22 +45,6 @@ def write_mtl(scene, filepath, path_mode, copy_set, mtl_dict): ...@@ -45,22 +45,6 @@ def write_mtl(scene, filepath, path_mode, copy_set, mtl_dict):
source_dir = bpy.data.filepath source_dir = bpy.data.filepath
dest_dir = os.path.dirname(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 = open(filepath, "w", encoding="utf8", newline="\n")
file.write('# Blender MTL File: %r\n' % os.path.basename(bpy.data.filepath)) file.write('# Blender MTL File: %r\n' % os.path.basename(bpy.data.filepath))
file.write('# Material Count: %i\n' % len(mtl_dict)) file.write('# Material Count: %i\n' % len(mtl_dict))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment