[Bf-blender-cvs] [6febe6e7253] master: Silence warning from Collada
Dalai Felinto
noreply at git.blender.org
Wed Nov 8 21:34:31 CET 2017
Commit: 6febe6e725381456f39966e0f685da67cfe52bce
Author: Dalai Felinto
Date: Wed Nov 8 18:33:17 2017 -0200
Branches: master
https://developer.blender.org/rB6febe6e725381456f39966e0f685da67cfe52bce
Silence warning from Collada
===================================================================
M source/blender/collada/DocumentExporter.cpp
===================================================================
diff --git a/source/blender/collada/DocumentExporter.cpp b/source/blender/collada/DocumentExporter.cpp
index dcfd062470c..284a6da1a40 100644
--- a/source/blender/collada/DocumentExporter.cpp
+++ b/source/blender/collada/DocumentExporter.cpp
@@ -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>
More information about the Bf-blender-cvs
mailing list