Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/armature/pose_edit.c
| Show First 20 Lines • Show All 497 Lines • ▼ Show 20 Lines | else { /* constraints, optional (note: max we can have is 24 constraints) */ | ||||
| int const_toggle[24] = {0}; /* XXX, initialize as 0 to quiet errors */ | int const_toggle[24] = {0}; /* XXX, initialize as 0 to quiet errors */ | ||||
| ListBase const_copy = {NULL, NULL}; | ListBase const_copy = {NULL, NULL}; | ||||
| BLI_duplicatelist(&const_copy, &(pchanact->constraints)); | BLI_duplicatelist(&const_copy, &(pchanact->constraints)); | ||||
| /* build the puplist of constraints */ | /* build the puplist of constraints */ | ||||
| for (con = pchanact->constraints.first, i = 0; con; con = con->next, i++) { | for (con = pchanact->constraints.first, i = 0; con; con = con->next, i++) { | ||||
| const_toggle[i] = 1; | const_toggle[i] = 1; | ||||
| // add_numbut(i, TOG|INT, con->name, 0, 0, &(const_toggle[i]), ""); | // add_numbut(i, UI_BTYPE_TOGGLE|INT, con->name, 0, 0, &(const_toggle[i]), ""); | ||||
| } | } | ||||
| // if (!do_clever_numbuts("Select Constraints", i, REDRAW)) { | // if (!do_clever_numbuts("Select Constraints", i, REDRAW)) { | ||||
| // BLI_freelistN(&const_copy); | // BLI_freelistN(&const_copy); | ||||
| // return; | // return; | ||||
| // } | // } | ||||
| /* now build a new listbase from the options selected */ | /* now build a new listbase from the options selected */ | ||||
| ▲ Show 20 Lines • Show All 644 Lines • Show Last 20 Lines | |||||