Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_nla/nla_select.c
| Show First 20 Lines • Show All 302 Lines • ▼ Show 20 Lines | static void nlaedit_strip_at_region_position( | ||||
| float xmin = UI_view2d_region_to_view_x(v2d, region_x - 7); | float xmin = UI_view2d_region_to_view_x(v2d, region_x - 7); | ||||
| float xmax = UI_view2d_region_to_view_x(v2d, region_x + 7); | float xmax = UI_view2d_region_to_view_x(v2d, region_x + 7); | ||||
| bAnimListElem *ale = BLI_findlink(&anim_data, channel_index); | bAnimListElem *ale = BLI_findlink(&anim_data, channel_index); | ||||
| if (ale != NULL) { | if (ale != NULL) { | ||||
| if (ale->type == ANIMTYPE_NLATRACK) { | if (ale->type == ANIMTYPE_NLATRACK) { | ||||
| NlaTrack *nlt = (NlaTrack *)ale->data; | NlaTrack *nlt = (NlaTrack *)ale->data; | ||||
| for (NlaStrip *strip = nlt->strips.first; strip; strip = strip->next) { | LISTBASE_FOREACH (NlaStrip *, strip, &nlt->strips) { | ||||
| if (BKE_nlastrip_within_bounds(strip, xmin, xmax)) { | if (BKE_nlastrip_within_bounds(strip, xmin, xmax)) { | ||||
| *r_ale = ale; | *r_ale = ale; | ||||
| *r_strip = strip; | *r_strip = strip; | ||||
| BLI_remlink(&anim_data, ale); | BLI_remlink(&anim_data, ale); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 423 Lines • Show Last 20 Lines | |||||