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-03-21 19:10:19 +0300
committerGaia Clary <gaia.clary@machinimatrix.org>2017-03-23 16:14:22 +0300
commit89631485ccf5fac5e61f77f29c4b9ca2e9779574 (patch)
tree2c3e28f3db2c50a4ca66c604090bce4711fde8bb /source/blender/collada
parent1600b93fb822ea39383ea6849f866aac767ceb12 (diff)
collada: use vector copy function instead of direct assigning
Diffstat (limited to 'source/blender/collada')
-rw-r--r--source/blender/collada/ArmatureImporter.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/collada/ArmatureImporter.cpp b/source/blender/collada/ArmatureImporter.cpp
index f4ce3992771..5b3340a938f 100644
--- a/source/blender/collada/ArmatureImporter.cpp
+++ b/source/blender/collada/ArmatureImporter.cpp
@@ -322,10 +322,7 @@ void ArmatureImporter::connect_bone_chains(bArmature *armature, Bone *parentbone
if (len_squared_v3(vec) > MINIMUM_BONE_LENGTH)
{
- pebone->tail[0] = cebone->head[0];
- pebone->tail[1] = cebone->head[1];
- pebone->tail[2] = cebone->head[2];
-
+ copy_v3_v3(pebone->tail, cebone->head);
if (pbe && pbe->get_chain_length() >= this->import_settings->min_chain_length) {
cebone->flag |= BONE_CONNECTED;
printf("Connecting chain: parent %s --> %s (child)\n", pebone->name, cebone->name);