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 :)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user