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/AnimationExporter.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/AnimationExporter.cpp')
-rw-r--r-- | source/blender/collada/AnimationExporter.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/source/blender/collada/AnimationExporter.cpp b/source/blender/collada/AnimationExporter.cpp index cb675618ea5..9582da4fe5c 100644 --- a/source/blender/collada/AnimationExporter.cpp +++ b/source/blender/collada/AnimationExporter.cpp @@ -1110,13 +1110,12 @@ void AnimationExporter::enable_fcurves(bAction *act, char *bone_name) } } -/* TODO - only check NodeLink objects that are exported */ bool AnimationExporter::hasAnimations(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; FCurve *fcu = 0; //Check for object transform animations @@ -1140,7 +1139,6 @@ bool AnimationExporter::hasAnimations(Scene *sce) if (fcu) return true; - base = base->next; } return false; } |