[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2030] trunk/py/scripts/addons/ io_scene_obj/export_obj.py: remove unused image copy function.

Campbell Barton ideasman42 at gmail.com
Fri Jun 10 06:07:45 CEST 2011


Revision: 2030
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2030
Author:   campbellbarton
Date:     2011-06-10 04:07:41 +0000 (Fri, 10 Jun 2011)
Log Message:
-----------
remove unused image copy function.

Modified Paths:
--------------
    trunk/py/scripts/addons/io_scene_obj/export_obj.py

Modified: trunk/py/scripts/addons/io_scene_obj/export_obj.py
===================================================================
--- trunk/py/scripts/addons/io_scene_obj/export_obj.py	2011-06-09 09:28:37 UTC (rev 2029)
+++ trunk/py/scripts/addons/io_scene_obj/export_obj.py	2011-06-10 04:07:41 UTC (rev 2030)
@@ -45,22 +45,6 @@
     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))



More information about the Bf-extensions-cvs mailing list