diff options
author | Ton Roosendaal <ton@blender.org> | 2012-11-04 16:13:26 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2012-11-04 16:13:26 +0400 |
commit | 2a8ce1f12162593ad9c1db3422d35530c5d05dc2 (patch) | |
tree | 464dec3ad8d36c780b543cf957191db150ad0862 /source/blender/blenkernel | |
parent | f32113bbc8b44edb2b2b9d52732e26e4c7d7f66c (diff) |
Bugfix #33074
In armature editmode, with mirroring, after duplication of a bone and using
the Wkey "flip names" you get a crash. Code for naming was accessing a NULL
in the bPose channel - not set until leaving editmode.
Thanks to Ben Batt for tackling the issue :)
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/object.c b/source/blender/blenkernel/intern/object.c index 5b211d7f09a..0611e84bdf3 100644 --- a/source/blender/blenkernel/intern/object.c +++ b/source/blender/blenkernel/intern/object.c @@ -1783,7 +1783,7 @@ static void ob_parbone(Object *ob, Object *par, float mat[][4]) /* Make sure the bone is still valid */ pchan = BKE_pose_channel_find_name(par->pose, ob->parsubstr); - if (!pchan) { + if (!pchan || !pchan->bone) { printf("Object %s with Bone parent: bone %s doesn't exist\n", ob->id.name + 2, ob->parsubstr); unit_m4(mat); return; |