Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/nla.c
| Show First 20 Lines • Show All 428 Lines • ▼ Show 20 Lines | #endif | ||||
| /* strip should be referenced as-is */ | /* strip should be referenced as-is */ | ||||
| strip->scale = 1.0f; | strip->scale = 1.0f; | ||||
| strip->repeat = 1.0f; | strip->repeat = 1.0f; | ||||
| /* return this strip */ | /* return this strip */ | ||||
| return strip; | return strip; | ||||
| } | } | ||||
| /** Callback used by lib_query to walk over all ID usages (mimics `foreach_id` callback of | /** | ||||
| * `IDTypeInfo` structure). */ | * Callback used by lib_query to walk over all ID usages (mimics `foreach_id` callback of | ||||
| * `IDTypeInfo` structure). | |||||
| */ | |||||
| void BKE_nla_strip_foreach_id(NlaStrip *strip, LibraryForeachIDData *data) | void BKE_nla_strip_foreach_id(NlaStrip *strip, LibraryForeachIDData *data) | ||||
| { | { | ||||
| BKE_LIB_FOREACHID_PROCESS(data, strip->act, IDWALK_CB_USER); | BKE_LIB_FOREACHID_PROCESS(data, strip->act, IDWALK_CB_USER); | ||||
| LISTBASE_FOREACH (FCurve *, fcu, &strip->fcurves) { | LISTBASE_FOREACH (FCurve *, fcu, &strip->fcurves) { | ||||
| BKE_fcurve_foreach_id(fcu, data); | BKE_fcurve_foreach_id(fcu, data); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 928 Lines • ▼ Show 20 Lines | else if (strip->start < nls->end) { | ||||
| for (; nls; nls = nls->prev) { | for (; nls; nls = nls->prev) { | ||||
| nls->start -= offset; | nls->start -= offset; | ||||
| nls->end -= offset; | nls->end -= offset; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| /** Recalculate the start and end frames for the strip to match the bounds of its action such that | /** | ||||
| * the overall NLA animation result is unchanged. */ | * Recalculate the start and end frames for the strip to match the bounds of its action such that | ||||
| * the overall NLA animation result is unchanged. | |||||
| */ | |||||
| void BKE_nlastrip_recalculate_bounds_sync_action(NlaStrip *strip) | void BKE_nlastrip_recalculate_bounds_sync_action(NlaStrip *strip) | ||||
| { | { | ||||
| float prev_actstart; | float prev_actstart; | ||||
| if (strip == NULL || strip->type != NLASTRIP_TYPE_CLIP) { | if (strip == NULL || strip->type != NLASTRIP_TYPE_CLIP) { | ||||
| return; | return; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 918 Lines • Show Last 20 Lines | |||||