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>2017-04-03 11:48:00 +0300
committerGaia Clary <gaia.clary@machinimatrix.org>2017-04-03 11:48:00 +0300
commit368b74315a58f66187b924cbc646abd05ce6a2b7 (patch)
treeff14725d78e3e9ca13cd4255b48ae2ad218d0f71 /source/blender/collada/ArmatureExporter.cpp
parentf65d6ea95458ad53715f09165d37f2486e4750be (diff)
Collada - add flag to limit precision of exported data, mainly to simplify debugging
Diffstat (limited to 'source/blender/collada/ArmatureExporter.cpp')
-rw-r--r--source/blender/collada/ArmatureExporter.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/collada/ArmatureExporter.cpp b/source/blender/collada/ArmatureExporter.cpp
index 49722873a91..9348f3b3285 100644
--- a/source/blender/collada/ArmatureExporter.cpp
+++ b/source/blender/collada/ArmatureExporter.cpp
@@ -304,7 +304,9 @@ void ArmatureExporter::add_bone_transform(Object *ob_arm, Bone *bone, COLLADASW:
}
}
- bc_sanitize_mat(mat, 6); // XXX: Make this optional ?
+ if (this->export_settings->limit_precision)
+ bc_sanitize_mat(mat, 6);
+
TransformWriter::add_node_transform(node, mat, NULL);
}