Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_nla/nla_buttons.c
| Show First 20 Lines • Show All 139 Lines • ▼ Show 20 Lines | switch (ale->type) { | ||||
| case ANIMTYPE_DSMBALL: | case ANIMTYPE_DSMBALL: | ||||
| case ANIMTYPE_DSARM: | case ANIMTYPE_DSARM: | ||||
| case ANIMTYPE_DSMESH: | case ANIMTYPE_DSMESH: | ||||
| case ANIMTYPE_DSTEX: | case ANIMTYPE_DSTEX: | ||||
| case ANIMTYPE_DSLAT: | case ANIMTYPE_DSLAT: | ||||
| case ANIMTYPE_DSLINESTYLE: | case ANIMTYPE_DSLINESTYLE: | ||||
| case ANIMTYPE_DSSPK: | case ANIMTYPE_DSSPK: | ||||
| case ANIMTYPE_DSGPENCIL: | case ANIMTYPE_DSGPENCIL: | ||||
| case ANIMTYPE_PALETTE: | |||||
| { | { | ||||
| /* for these channels, we only do AnimData */ | /* for these channels, we only do AnimData */ | ||||
| if (ale->adt && adt_ptr) { | if (ale->adt && adt_ptr) { | ||||
| ID *id; | ID *id; | ||||
| if ((ale->data == NULL) || (ale->type == ANIMTYPE_OBJECT)) { | if ((ale->data == NULL) || (ale->type == ANIMTYPE_OBJECT)) { | ||||
| /* ale->data is not an ID block! */ | /* ale->data is not an ID block! */ | ||||
| id = ale->id; | id = ale->id; | ||||
| ▲ Show 20 Lines • Show All 126 Lines • ▼ Show 20 Lines | if (adt_ptr.id.data) { | ||||
| uiItemS(layout); | uiItemS(layout); | ||||
| } | } | ||||
| /* Active Action Properties ------------------------------------- */ | /* Active Action Properties ------------------------------------- */ | ||||
| /* action */ | /* action */ | ||||
| row = uiLayoutRow(layout, true); | row = uiLayoutRow(layout, true); | ||||
| uiTemplateID( | uiTemplateID( | ||||
| row, (bContext *)C, &adt_ptr, "action", | row, (bContext *)C, &adt_ptr, "action", | ||||
| "ACTION_OT_new", NULL, "NLA_OT_action_unlink", UI_TEMPLATE_ID_FILTER_ALL); | "ACTION_OT_new", NULL, "NLA_OT_action_unlink", UI_TEMPLATE_ID_FILTER_ALL, false); | ||||
| /* extrapolation */ | /* extrapolation */ | ||||
| row = uiLayoutRow(layout, true); | row = uiLayoutRow(layout, true); | ||||
| uiItemR(row, &adt_ptr, "action_extrapolation", 0, NULL, ICON_NONE); | uiItemR(row, &adt_ptr, "action_extrapolation", 0, NULL, ICON_NONE); | ||||
| /* blending */ | /* blending */ | ||||
| row = uiLayoutRow(layout, true); | row = uiLayoutRow(layout, true); | ||||
| uiItemR(row, &adt_ptr, "action_blend_type", 0, NULL, ICON_NONE); | uiItemR(row, &adt_ptr, "action_blend_type", 0, NULL, ICON_NONE); | ||||
| ▲ Show 20 Lines • Show All 288 Lines • Show Last 20 Lines | |||||