diff options
author | Joshua Leung <aligorith@gmail.com> | 2009-06-27 08:56:20 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2009-06-27 08:56:20 +0400 |
commit | f508319fc8c54e918446482392ab6e1b01c63fe6 (patch) | |
tree | e05f14c5a3ce453676e4dc48401c5c023cedd11b /source/blender/editors/space_nla/nla_edit.c | |
parent | bbf793472eb22349710c73888b969378ff99350d (diff) |
NLA SoC: Apply-Scale Operator now recalculates action length after scale is applied
Diffstat (limited to 'source/blender/editors/space_nla/nla_edit.c')
-rw-r--r-- | source/blender/editors/space_nla/nla_edit.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/editors/space_nla/nla_edit.c b/source/blender/editors/space_nla/nla_edit.c index df30e112b5a..44528714732 100644 --- a/source/blender/editors/space_nla/nla_edit.c +++ b/source/blender/editors/space_nla/nla_edit.c @@ -769,8 +769,12 @@ static int nlaedit_apply_scale_exec (bContext *C, wmOperator *op) bed.data= strip; ANIM_animchanneldata_keys_bezier_loop(&bed, strip->act, ALE_ACT, NULL, bezt_apply_nlamapping, calchandles_fcurve, 0); - /* clear scale of strip now that it has been applied, but leave everything else alone */ + /* clear scale of strip now that it has been applied, + * and recalculate the extents of the action now that it has been scaled + * but leave everything else alone + */ strip->scale= 1.0f; + calc_action_range(strip->act, &strip->actstart, &strip->actend, 1); } } } |