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>2008-04-25 20:09:16 +0400
committerCampbell Barton <ideasman42@gmail.com>2008-04-25 20:09:16 +0400
commitfeb440c2cd72ef87c79d1bbf1524802d4e82fa88 (patch)
tree0815c5e89ee6c0cfd579810fb4edbd524dceae00 /source/blender/python/api2_2x/Blender.c
parentb94f3d0fcb720d81833ae0d6f27aac1bbb50d815 (diff)
added sequencer paths to bpath iterator, This needed to use get/set filename callbacks internally because the sequencer stores dir/file separately.
This means when moving large projects with many images/videos/sounds is possible with 'File, External Data, Find Missing Files'. - needed so we can put peach animatic, glrenders & testrenders on the dvd. also datatoc.c - brecht's fixes from apricot.
Diffstat (limited to 'source/blender/python/api2_2x/Blender.c')
-rw-r--r--source/blender/python/api2_2x/Blender.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/python/api2_2x/Blender.c b/source/blender/python/api2_2x/Blender.c
index 6d9c448c16f..fe5ae25ccb1 100644
--- a/source/blender/python/api2_2x/Blender.c
+++ b/source/blender/python/api2_2x/Blender.c
@@ -927,7 +927,7 @@ static PyObject *Blender_CountPackedFiles( PyObject * self )
static PyObject *Blender_GetPaths( PyObject * self, PyObject *args, PyObject *keywds )
{
struct BPathIterator bpi;
- PyObject *list = PyList_New(0), *st;
+ PyObject *list = PyList_New(0), *st; /* stupidly big string to be safe */
/* be sure there is low chance of the path being too short */
char filepath_expanded[FILE_MAXDIR*2];
@@ -944,18 +944,18 @@ static PyObject *Blender_GetPaths( PyObject * self, PyObject *args, PyObject *ke
/* build the list */
if (absolute) {
- BLI_bpathIterator_copyPathExpanded( &bpi, filepath_expanded );
- st = PyString_FromString(filepath_expanded);
+ BLI_bpathIterator_getPathExpanded( &bpi, filepath_expanded );
} else {
- st = PyString_FromString(BLI_bpathIterator_getPath(&bpi));
+ BLI_bpathIterator_getPathExpanded( &bpi, filepath_expanded );
}
+ st = PyString_FromString(filepath_expanded);
PyList_Append(list, st);
Py_DECREF(st);
BLI_bpathIterator_step(&bpi);
}
-
+ BLI_bpathIterator_free(&bpi);
return list;
}