option for the path iterator to loop over packed files so their dir separator can be switched on file load.

This commit is contained in:
2011-01-18 00:10:11 +00:00
parent 3989351632
commit 86baf7c937
4 changed files with 46 additions and 30 deletions

View File

@@ -96,7 +96,7 @@ static PyObject *bpy_blend_paths(PyObject *UNUSED(self), PyObject *args, PyObjec
list= PyList_New(0);
for(BLI_bpathIterator_init(&bpi, G.main, NULL); !BLI_bpathIterator_isDone(bpi); BLI_bpathIterator_step(bpi)) {
for(BLI_bpathIterator_init(&bpi, G.main, NULL, 0); !BLI_bpathIterator_isDone(bpi); BLI_bpathIterator_step(bpi)) {
/* build the list */
if (absolute) {
BLI_bpathIterator_getPathExpanded(bpi, filepath_expanded);