From 2a8ce1f12162593ad9c1db3422d35530c5d05dc2 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Sun, 4 Nov 2012 12:13:26 +0000 Subject: [PATCH] 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 :) --- source/blender/blenkernel/intern/object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;