Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/object.c
| Show First 20 Lines • Show All 3,301 Lines • ▼ Show 20 Lines | static void ob_parbone(Object *ob, Object *par, float r_mat[4][4]) | ||||
| if (par->type != OB_ARMATURE) { | if (par->type != OB_ARMATURE) { | ||||
| unit_m4(r_mat); | unit_m4(r_mat); | ||||
| return; | return; | ||||
| } | } | ||||
| /* Make sure the bone is still valid */ | /* Make sure the bone is still valid */ | ||||
| bPoseChannel *pchan = BKE_pose_channel_find_name(par->pose, ob->parsubstr); | bPoseChannel *pchan = BKE_pose_channel_find_name(par->pose, ob->parsubstr); | ||||
| if (!pchan || !pchan->bone) { | if (!pchan || !pchan->bone) { | ||||
| CLOG_ERROR( | CLOG_WARN( | ||||
| &LOG, "Object %s with Bone parent: bone %s doesn't exist", ob->id.name + 2, ob->parsubstr); | &LOG, "Parent Bone: '%s' for Object: '%s' doesn't exist", ob->parsubstr, ob->id.name + 2); | ||||
| unit_m4(r_mat); | unit_m4(r_mat); | ||||
| return; | return; | ||||
| } | } | ||||
| /* get bone transform */ | /* get bone transform */ | ||||
| if (pchan->bone->flag & BONE_RELATIVE_PARENTING) { | if (pchan->bone->flag & BONE_RELATIVE_PARENTING) { | ||||
| /* the new option uses the root - expected behavior, but differs from old... */ | /* the new option uses the root - expected behavior, but differs from old... */ | ||||
| /* XXX check on version patching? */ | /* XXX check on version patching? */ | ||||
| ▲ Show 20 Lines • Show All 2,420 Lines • Show Last 20 Lines | |||||