Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_templates.c
| Show First 20 Lines • Show All 2,666 Lines • ▼ Show 20 Lines | static void constraint_ops_extra_draw(bContext *C, uiLayout *layout, void *con_v) | ||||
| RNA_int_set(&op_ptr, "index", BLI_listbase_count(constraint_list) - 1); | RNA_int_set(&op_ptr, "index", BLI_listbase_count(constraint_list) - 1); | ||||
| if (!con->next) { | if (!con->next) { | ||||
| uiLayoutSetEnabled(row, false); | uiLayoutSetEnabled(row, false); | ||||
| } | } | ||||
| } | } | ||||
| static void draw_constraint_header(uiLayout *layout, Object *ob, bConstraint *con) | static void draw_constraint_header(uiLayout *layout, Object *ob, bConstraint *con) | ||||
| { | { | ||||
| bPoseChannel *pchan = BKE_pose_channel_active(ob); | bPoseChannel *pchan = BKE_pose_channel_active_if_layer_visible(ob); | ||||
| short proxy_protected, xco = 0, yco = 0; | short proxy_protected, xco = 0, yco = 0; | ||||
| // int rb_col; // UNUSED | // int rb_col; // UNUSED | ||||
| /* determine whether constraint is proxy protected or not */ | /* determine whether constraint is proxy protected or not */ | ||||
| if (BKE_constraints_proxylocked_owner(ob, pchan)) { | if (BKE_constraints_proxylocked_owner(ob, pchan)) { | ||||
| proxy_protected = (con->flag & CONSTRAINT_PROXY_LOCAL) == 0; | proxy_protected = (con->flag & CONSTRAINT_PROXY_LOCAL) == 0; | ||||
| } | } | ||||
| else { | else { | ||||
| ▲ Show 20 Lines • Show All 3,888 Lines • Show Last 20 Lines | |||||