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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user