collada: Make sure that bone use_conncet is set to false when connect type is not defined in Import
This commit is contained in:
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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user