forked from bartvdbraak/blender
Fix T82624: Skin modifiers root bone cannot be moved
When creating an armature from the skin modifier, resulting bones would always be flagged BONE_CONNECTED. Those bones cannot be transformed (just rotated). Now only flag bones that really have a parent BONE_CONNECTED. Maniphest Tasks: T82624 Differential Revision: https://developer.blender.org/D9534
This commit is contained in:
parent
c08827e659
commit
eaf9ae643b
@ -2308,7 +2308,9 @@ static void skin_armature_bone_create(Object *skin_ob,
|
||||
EditBone *bone = ED_armature_ebone_add(arm, "Bone");
|
||||
|
||||
bone->parent = parent_bone;
|
||||
bone->flag |= BONE_CONNECTED;
|
||||
if (parent_bone != NULL) {
|
||||
bone->flag |= BONE_CONNECTED;
|
||||
}
|
||||
|
||||
copy_v3_v3(bone->head, mvert[parent_v].co);
|
||||
copy_v3_v3(bone->tail, mvert[v].co);
|
||||
|
Loading…
Reference in New Issue
Block a user