diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2017-11-08 23:33:17 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2017-11-08 23:33:17 +0300 |
commit | 6febe6e725381456f39966e0f685da67cfe52bce (patch) | |
tree | f4af56538030d32f6cbc2ca52d3cd21729c80f4a /source | |
parent | 5fc1faa737c42823a984ecba9a3697d88e281ea8 (diff) |
Silence warning from Collada
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/collada/DocumentExporter.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
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> |