FBX exporter conversion almost done.

Unit tests:
- add a check that BKE_copy_images produces NULL filepath for images having type other than IMA_TYPE_IMAGE
- also expect NULL filepath for images having empty filename

Enhanced BKE_copy_images so the tests pass.
This commit is contained in:
2009-07-17 10:09:07 +00:00
parent 140f2b154f
commit 122104b3bb
4 changed files with 104 additions and 63 deletions

View File

@@ -583,9 +583,8 @@ static PyObject *bpy_util_copy_images(PyObject *self, PyObject *args)
/* convert filenames */
ret= PyList_New(0);
len= BLI_countlist(paths);
for(link= paths->first, i= 0; link; link++, i++) {
for(link= paths->first; link; link= link->next) {
if (link->data) {
item= PyUnicode_FromString(link->data);
PyList_Append(ret, item);