Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/object/object_constraint.c
| Show First 20 Lines • Show All 105 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| /** | /** | ||||
| * Get the constraints for the active pose bone. Bone may be on an inactive bone-layer | * Get the constraints for the active pose bone. Bone may be on an inactive bone-layer | ||||
| * (unlike #ED_object_constraint_active_list, such constraints are not excluded here). | * (unlike #ED_object_constraint_active_list, such constraints are not excluded here). | ||||
| */ | */ | ||||
| ListBase *ED_object_pose_constraint_list(const bContext *C) | ListBase *ED_object_pose_constraint_list(const bContext *C) | ||||
| { | { | ||||
| bPoseChannel *pose_bone = CTX_data_pointer_get(C, "active_pose_bone").data; | bPoseChannel *pose_bone = CTX_data_pointer_get(C, "pose_bone").data; | ||||
| if (pose_bone == NULL) { | if (pose_bone == NULL) { | ||||
| pose_bone = CTX_data_pointer_get(C, "pose_bone").data; | pose_bone = CTX_data_pointer_get(C, "active_pose_bone").data; | ||||
| if (pose_bone == NULL) { | if (pose_bone == NULL) { | ||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| } | } | ||||
| return &pose_bone->constraints; | return &pose_bone->constraints; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 2,366 Lines • Show Last 20 Lines | |||||