fix: silence warnings about unused local variable (thanks to dfelinto for the hint)
authorGaia Clary <gaia.clary@machinimatrix.org>
Fri, 2 Feb 2018 10:56:50 +0000 (11:56 +0100)
committerGaia Clary <gaia.clary@machinimatrix.org>
Fri, 2 Feb 2018 10:57:10 +0000 (11:57 +0100)
source/blender/collada/DocumentExporter.cpp

index 3c938f6b6cb7a599ddf027f11ba4cf86a300763e..957fec50e4ba0173bfe2936700e657bd7a6ffb24 100644 (file)
@@ -304,9 +304,9 @@ int DocumentExporter::exportCurrentScene(Scene *sce)
 
        // <library_animations>
        AnimationExporter ae(writer, this->export_settings);
 
        // <library_animations>
        AnimationExporter ae(writer, this->export_settings);
-       bool has_animations = ae.exportAnimations(sce);
 
 #if 0
 
 #if 0
+       bool has_animations = ae.exportAnimations(sce);
        /* The following code seems to be an obsolete workaround
        Comment out until it proofs correct that we no longer need it.
        */
        /* The following code seems to be an obsolete workaround
        Comment out until it proofs correct that we no longer need it.
        */
@@ -322,6 +322,7 @@ int DocumentExporter::exportCurrentScene(Scene *sce)
                se.setExportTransformationType(this->export_settings->export_transformation_type);
        }
 #else
                se.setExportTransformationType(this->export_settings->export_transformation_type);
        }
 #else
+       ae.exportAnimations(sce);
        se.setExportTransformationType(this->export_settings->export_transformation_type);
 #endif
        se.exportScene(sce);
        se.setExportTransformationType(this->export_settings->export_transformation_type);
 #endif
        se.exportScene(sce);