collada: Make sure that bone use_conncet is set to false when connect type is not defined in Import

This commit is contained in:
Gaia Clary 2017-03-21 17:49:21 +01:00
parent 33e32c341a
commit 1729dd9998

@ -159,10 +159,11 @@ int ArmatureImporter::create_bone(SkinInfo *skin, COLLADAFW::Node *node, EditBon
int use_connect = be.get_use_connect();
switch (use_connect) {
case 1: bone->flag |= BONE_CONNECTED;
break;
case 0: bone->flag &= ~BONE_CONNECTED;
case -1: break; // not defined
case 1: bone->flag |= BONE_CONNECTED;
break;
case -1:/* Connect type not specified */
case 0: bone->flag &= ~BONE_CONNECTED;
break;
}
if (be.has_roll()) {