Fix: Collada Importer: Keep bindinfo option is not properly handled

Actually the option was not at all used and the importer always created the bindinfo custom properties.
This commit is contained in:
Gaia Clary 2018-11-26 23:11:29 +01:00
parent 65874d3f33
commit c99f18a787
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ int ArmatureImporter::create_bone(SkinInfo *skin, COLLADAFW::Node *node, EditBon
}
copy_v3_v3(bone->head, mat[3]);
if (bone_is_skinned)
if (bone_is_skinned && this->import_settings->keep_bind_info)
{
float rest_mat[4][4];
get_node_mat(rest_mat, node, NULL, NULL, NULL);