Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2009-06-27 08:56:20 +0400
committerJoshua Leung <aligorith@gmail.com>2009-06-27 08:56:20 +0400
commitf508319fc8c54e918446482392ab6e1b01c63fe6 (patch)
treee05f14c5a3ce453676e4dc48401c5c023cedd11b /source/blender/editors/space_nla
parentbbf793472eb22349710c73888b969378ff99350d (diff)
NLA SoC: Apply-Scale Operator now recalculates action length after scale is applied
Diffstat (limited to 'source/blender/editors/space_nla')
-rw-r--r--source/blender/editors/space_nla/nla_edit.c6
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);
}
}
}