Added Image.get_abs_filename() and updated scripts to use it. This removes the necess...
[blender.git] / release / io / export_fbx.py
index 3515170528f5e0bd67bc48bb1c3a979f47e88fb8..aa65473b8d65a5fa157d0e83fd32023f18f07287 100644 (file)
@@ -94,6 +94,7 @@ def copy_file(source, dest):
        file.close()
 
 
+# XXX not used anymore, images are copied one at a time
 def copy_images(dest_dir, textures):
        if not dest_dir.endswith(os.sep):
                dest_dir += os.sep
@@ -1285,10 +1286,9 @@ def write(filename, batch_objects = None, \
                base = os.path.basename(rel)
 
                if EXP_IMAGE_COPY:
-                       src = bpy.sys.expandpath(image.filename)
                        absp = image.get_export_path(basepath, False)
                        if not os.path.exists(absp):
-                               shutil.copy(src, absp)
+                               shutil.copy(image.get_abs_filename(), absp)
 
                return (rel, base)