diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2020-11-11 20:07:53 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2020-11-12 13:20:24 +0300 |
commit | eaf9ae643bfacfac9055db87c1daadc79e1e92e5 (patch) | |
tree | 687b97dad28f5c831f2f10f1b770bdea3d84a472 | |
parent | c08827e659e5f48034b4f9d4612bd309ea63ff03 (diff) |
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
-rw-r--r-- | source/blender/editors/object/object_modifier.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_modifier.c b/source/blender/editors/object/object_modifier.c index 4eed9187d66..7f87577b630 100644 --- a/source/blender/editors/object/object_modifier.c +++ b/source/blender/editors/object/object_modifier.c @@ -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); |