From 8664d4b98ba6cdcde44a6878dbdf4d8327a1f96e Mon Sep 17 00:00:00 2001 From: Gaia Clary Date: Wed, 6 Mar 2013 23:21:52 +0000 Subject: Collada: Added option for how rot,loc,trans data is exported (improves flexibility for support of other 3D tools) --- source/blender/collada/AnimationExporter.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source/blender/collada/AnimationExporter.cpp') diff --git a/source/blender/collada/AnimationExporter.cpp b/source/blender/collada/AnimationExporter.cpp index a69f7918e40..983e0fece5f 100644 --- a/source/blender/collada/AnimationExporter.cpp +++ b/source/blender/collada/AnimationExporter.cpp @@ -36,9 +36,10 @@ void forEachObjectInExportSet(Scene *sce, Functor &f, LinkNode *export_set) } } -void AnimationExporter::exportAnimations(Scene *sce) +bool AnimationExporter::exportAnimations(Scene *sce) { - if (hasAnimations(sce)) { + bool has_animations = hasAnimations(sce); + if (has_animations) { this->scene = sce; openLibrary(); @@ -47,6 +48,7 @@ void AnimationExporter::exportAnimations(Scene *sce) closeLibrary(); } + return has_animations; } // called for each exported object -- cgit v1.2.3