collada: use vector copy function instead of direct assigning

This commit is contained in:
Gaia Clary 2017-03-21 17:10:19 +01:00
parent 1600b93fb8
commit 89631485cc
1 changed files with 1 additions and 4 deletions

View File

@ -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);