Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaia Clary <gaia.clary@machinimatrix.org>2018-02-27 00:49:30 +0300
committerGaia Clary <gaia.clary@machinimatrix.org>2018-02-27 00:49:30 +0300
commitf228a08d027ef700344d35f1ba958249afa93222 (patch)
treefc6c60d89f911bcb0c5019e2e6e4243e49cba9af /source/blender/collada/DocumentExporter.cpp
parente94276d4033c72000942a49100e552e800d09e58 (diff)
parent7dd0e36dc4582e57a3f5235f384b5207882c923e (diff)
merge from master
Diffstat (limited to 'source/blender/collada/DocumentExporter.cpp')
-rw-r--r--source/blender/collada/DocumentExporter.cpp28
1 files changed, 5 insertions, 23 deletions
diff --git a/source/blender/collada/DocumentExporter.cpp b/source/blender/collada/DocumentExporter.cpp
index 1741312af5f..0e020c9011b 100644
--- a/source/blender/collada/DocumentExporter.cpp
+++ b/source/blender/collada/DocumentExporter.cpp
@@ -179,7 +179,7 @@ static COLLADABU::NativeString make_temp_filepath(const char *name, const char *
// COLLADA allows this through multiple <channel>s in <animation>.
// For this to work, we need to know objects that use a certain action.
-int DocumentExporter::exportCurrentScene(const EvaluationContext *eval_ctx, Scene *sce)
+int DocumentExporter::exportCurrentScene(EvaluationContext *eval_ctx, Scene *sce)
{
PointerRNA sceneptr, unit_settings;
PropertyRNA *system; /* unused , *scale; */
@@ -300,29 +300,11 @@ int DocumentExporter::exportCurrentScene(const EvaluationContext *eval_ctx, Scen
SceneExporter se(writer, &arm_exporter, this->export_settings);
- // <library_animations>
- AnimationExporter ae(writer, this->export_settings);
-
-#if 0
- bool has_animations = ae.exportAnimations(eval_ctx, sce);
- /* The following code seems to be an obsolete workaround
- Comment out until it proofs correct that we no longer need it.
- */
- 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>
- fprintf(stdout,
- "For animated Ojects we must use decomposed <matrix> elements,\n" \
- "Forcing usage of TransLocRot transformation type.");
- se.setExportTransformationType(BC_TRANSFORMATION_TYPE_TRANSROTLOC);
+ if (this->export_settings->include_animations) {
+ // <library_animations>
+ AnimationExporter ae(writer, this->export_settings);
+ ae.exportAnimations(eval_ctx, sce);
}
- else {
- se.setExportTransformationType(this->export_settings->export_transformation_type);
- }
-#else
- ae.exportAnimations(eval_ctx, sce);
- se.setExportTransformationType(this->export_settings->export_transformation_type);
-#endif
se.exportScene(eval_ctx, sce);
// <scene>