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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-02-26 14:50:59 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-02-26 14:50:59 +0300
commit878d8b44ee24e1832a33a2c3388052b505bc4524 (patch)
treed11028bd4f53c5c34f805e060c47914eeef17640 /source/blender/collada/DocumentExporter.cpp
parent3ea627245b5a03db3010b16f2ef7edcafacbfc8e (diff)
remove rna functions image.get_export_path() and image.get_abs_filename(), filename functions should not be spesific to images.
rename BKE_get_image_export_path() to BKE_rebase_path() and take a filename arg rather then an image. obj export file copy was also not working because of a missing import.
Diffstat (limited to 'source/blender/collada/DocumentExporter.cpp')
-rw-r--r--source/blender/collada/DocumentExporter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/collada/DocumentExporter.cpp b/source/blender/collada/DocumentExporter.cpp
index 4b35499fb62..3e1898a64d9 100644
--- a/source/blender/collada/DocumentExporter.cpp
+++ b/source/blender/collada/DocumentExporter.cpp
@@ -1435,9 +1435,9 @@ public:
BLI_split_dirfile_basic(mfilename, dir, NULL);
- BKE_get_image_export_path(image, dir, abs, sizeof(abs), rel, sizeof(rel));
+ BKE_rebase_path(abs, sizeof(abs), rel, sizeof(rel), G.sce, image->name, dir);
- if (strlen(abs)) {
+ if (abs[0] != '\0') {
// make absolute source path
BLI_strncpy(src, image->name, sizeof(src));