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

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);