Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/object/object_relations.c
| Show First 20 Lines • Show All 577 Lines • ▼ Show 20 Lines | case PAR_PATH_CONST: { | ||||
| /* fall back on regular parenting now (for follow only) */ | /* fall back on regular parenting now (for follow only) */ | ||||
| if (partype == PAR_FOLLOW) { | if (partype == PAR_FOLLOW) { | ||||
| partype = PAR_OBJECT; | partype = PAR_OBJECT; | ||||
| } | } | ||||
| break; | break; | ||||
| } | } | ||||
| case PAR_BONE: | case PAR_BONE: | ||||
| case PAR_BONE_RELATIVE: | case PAR_BONE_RELATIVE: | ||||
| pchan = BKE_pose_channel_active(par); | pchan = BKE_pose_channel_active_if_layer_visible(par); | ||||
| pchan_eval = BKE_pose_channel_active(parent_eval); | pchan_eval = BKE_pose_channel_active_if_layer_visible(parent_eval); | ||||
| if (pchan == NULL) { | if (pchan == NULL) { | ||||
| BKE_report(reports, RPT_ERROR, "No active bone"); | BKE_report(reports, RPT_ERROR, "No active bone"); | ||||
| return false; | return false; | ||||
| } | } | ||||
| } | } | ||||
| Object workob; | Object workob; | ||||
| ▲ Show 20 Lines • Show All 2,121 Lines • Show Last 20 Lines | |||||