Support proportional edit scaling on dopesheet keyframes

Fixes T60361

Reviewers: brecht

Maniphest Tasks: T60361

Differential Revision: https://developer.blender.org/D4188
This commit is contained in:
Philipp Oeser 2019-01-10 14:03:52 +01:00
parent 92a081ff83
commit ba2b26af31
Notes: blender-bot 2023-02-14 05:44:22 +01:00
Referenced by issue #60361, Scaling + Proportional editing doesn't work on dopesheet keyframes
1 changed files with 3 additions and 0 deletions

View File

@ -9181,6 +9181,9 @@ static void applyTimeScaleValue(TransInfo *t)
fac = floorf(fac + 0.5f);
}
/* take proportional editing into account */
fac = ((fac - 1.0f) * td->factor) + 1;
/* check if any need to apply nla-mapping */
if (adt)
startx = BKE_nla_tweakedit_remap(adt, startx, NLATIME_CONVERT_UNMAP);