diff options
author | Gaia Clary <gaia.clary@machinimatrix.org> | 2012-06-13 03:19:34 +0400 |
---|---|---|
committer | Gaia Clary <gaia.clary@machinimatrix.org> | 2012-06-13 03:19:34 +0400 |
commit | b0038ae4996993f1dd808babe402e2e390933330 (patch) | |
tree | e7b234532fe2cbf48f809c6ae027162d0361972c /source/blender/collada/ImageExporter.cpp | |
parent | c7cca0c842e05a4fc2f5946844d212a365c5ab47 (diff) |
Collada: fixed a few loops to only loop over the list of exported objects, instead of the current scene.
Diffstat (limited to 'source/blender/collada/ImageExporter.cpp')
-rw-r--r-- | source/blender/collada/ImageExporter.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/source/blender/collada/ImageExporter.cpp b/source/blender/collada/ImageExporter.cpp index 105b895cf37..c777a7d1fab 100644 --- a/source/blender/collada/ImageExporter.cpp +++ b/source/blender/collada/ImageExporter.cpp @@ -45,13 +45,12 @@ ImagesExporter::ImagesExporter(COLLADASW::StreamWriter *sw, const ExportSettings { } -/* TODO - shouldn't this use the objects LinkNode's ? */ bool ImagesExporter::hasImages(Scene *sce) { - Base *base = (Base *)sce->base.first; + LinkNode *node; - while (base) { - Object *ob = base->object; + for (node=this->export_settings->export_set; node; node=node->next) { + Object *ob = (Object *)node->link; int a; for (a = 0; a < ob->totcol; a++) { Material *ma = give_current_material(ob, a + 1); @@ -65,7 +64,6 @@ bool ImagesExporter::hasImages(Scene *sce) } } - base = base->next; } return false; } |