Silence warning from Collada
authorDalai Felinto <dfelinto@gmail.com>
Wed, 8 Nov 2017 20:33:17 +0000 (18:33 -0200)
committerDalai Felinto <dfelinto@gmail.com>
Wed, 8 Nov 2017 20:33:17 +0000 (18:33 -0200)
source/blender/collada/DocumentExporter.cpp

index dcfd062470c9a8eecf96a5d96ff027adaa020682..284a6da1a40dd98e8d1ac91bae926615f4ec8f25 100644 (file)
@@ -290,10 +290,6 @@ int DocumentExporter::exportCurrentScene(Scene *sce)
                ge.exportGeom(sce);
        }
 
-       // <library_animations>
-       AnimationExporter ae(writer, this->export_settings);
-       bool has_animations = ae.exportAnimations(sce);
-
        // <library_controllers>
        ArmatureExporter arm_exporter(writer, this->export_settings);
        ControllerExporter controller_exporter(writer, this->export_settings);
@@ -309,6 +305,11 @@ int DocumentExporter::exportCurrentScene(Scene *sce)
        /* The following code seems to be an obsolete workaround
           Comment out until it proofs correct that we no longer need it.
        */
+
+       // <library_animations>
+       AnimationExporter ae(writer, this->export_settings);
+       bool has_animations = ae.exportAnimations(sce);
+
        if (has_animations && this->export_settings->export_transformation_type == BC_TRANSFORMATION_TYPE_MATRIX) {
                // channels adressing <matrix> objects is not (yet) supported
                // So we force usage of <location>, <translation> and <scale>