Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-10-11 08:44:52 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-10-11 08:44:52 +0400
commit1a21899facaac90ee7b296ce84ed859198b5ad3b (patch)
treeba4f22df0f5efd2de7f2d938e35159a40b923e0e /io_scene_obj
parentad8251bfdda50def103063b9fa8fc8c89aa0ccb9 (diff)
use library argument for bpy_extras.io_utils.path_reference(...)
Diffstat (limited to 'io_scene_obj')
-rw-r--r--io_scene_obj/export_obj.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/io_scene_obj/export_obj.py b/io_scene_obj/export_obj.py
index b5cf778e..6d00bb42 100644
--- a/io_scene_obj/export_obj.py
+++ b/io_scene_obj/export_obj.py
@@ -101,7 +101,7 @@ def write_mtl(scene, filepath, path_mode, copy_set, mtl_dict):
# Write images!
if face_img: # We have an image on the face!
# write relative image path
- rel = bpy_extras.io_utils.path_reference(face_img.filepath, source_dir, dest_dir, path_mode, "", copy_set)
+ rel = bpy_extras.io_utils.path_reference(face_img.filepath, source_dir, dest_dir, path_mode, "", copy_set, face_img.library)
fw('map_Kd %s\n' % rel) # Diffuse mapping image
if mat: # No face image. if we havea material search for MTex image.
@@ -128,7 +128,7 @@ def write_mtl(scene, filepath, path_mode, copy_set, mtl_dict):
image_map["map_Ns"] = image
for key, image in image_map.items():
- filepath = bpy_extras.io_utils.path_reference(image.filepath, source_dir, dest_dir, path_mode, "", copy_set)
+ filepath = bpy_extras.io_utils.path_reference(image.filepath, source_dir, dest_dir, path_mode, "", copy_set, image.library)
fw('%s %s\n' % (key, repr(filepath)[1:-1]))
fw('\n\n')