Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_nla/nla_edit.c
| Show First 20 Lines • Show All 2,187 Lines • ▼ Show 20 Lines | for (strip = nlt->strips.first; strip; strip = strip->next) { | ||||
| ked.data = strip; | ked.data = strip; | ||||
| ANIM_animchanneldata_keyframes_loop( | ANIM_animchanneldata_keyframes_loop( | ||||
| &ked, ac.ads, strip->act, ALE_ACT, NULL, bezt_apply_nlamapping, calchandles_fcurve); | &ked, ac.ads, strip->act, ALE_ACT, NULL, bezt_apply_nlamapping, calchandles_fcurve); | ||||
| /* clear scale of strip now that it has been applied, | /* clear scale of strip now that it has been applied, | ||||
| * and recalculate the extents of the action now that it has been scaled | * and recalculate the extents of the action now that it has been scaled | ||||
| * but leave everything else alone | * but leave everything else alone | ||||
| */ | */ | ||||
| const float start = nlastrip_get_frame(strip, strip->actstart, NLATIME_CONVERT_MAP); | |||||
| const float end = nlastrip_get_frame(strip, strip->actend, NLATIME_CONVERT_MAP); | |||||
| if (strip->act->flag & ACT_FRAME_RANGE) { | |||||
| strip->act->frame_start = nlastrip_get_frame( | |||||
| strip, strip->act->frame_start, NLATIME_CONVERT_MAP); | |||||
| strip->act->frame_end = nlastrip_get_frame( | |||||
| strip, strip->act->frame_end, NLATIME_CONVERT_MAP); | |||||
| } | |||||
| strip->scale = 1.0f; | strip->scale = 1.0f; | ||||
| calc_action_range(strip->act, &strip->actstart, &strip->actend, 0); | strip->actstart = start; | ||||
| strip->actend = end; | |||||
| ale->update |= ANIM_UPDATE_DEPS; | ale->update |= ANIM_UPDATE_DEPS; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| /* free temp data */ | /* free temp data */ | ||||
| ANIM_animdata_update(&ac, &anim_data); | ANIM_animdata_update(&ac, &anim_data); | ||||
| ▲ Show 20 Lines • Show All 593 Lines • Show Last 20 Lines | |||||