diff options
author | Richard Antalik <richardantalik@gmail.com> | 2020-12-21 13:25:21 +0300 |
---|---|---|
committer | Richard Antalik <richardantalik@gmail.com> | 2020-12-21 13:36:39 +0300 |
commit | 5fe24ce2952328a85c7ff87c084a6c1e6232073c (patch) | |
tree | 9ad183206ed9a79236ccca46459c594b0440a7f2 /source/blender/blenloader/intern/versioning_290.c | |
parent | c34ba268560bd530e9458298a07f21487278a483 (diff) |
Fix T84010: Missing scale animation versioning code
Code was removed in 247b10e6a25b but it was incorrect in first place.
Conversion was done for `offset_x` and `offset_y` channel originally,
but it should be done for `scale_x` and `scale_y`
Diffstat (limited to 'source/blender/blenloader/intern/versioning_290.c')
-rw-r--r-- | source/blender/blenloader/intern/versioning_290.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_290.c b/source/blender/blenloader/intern/versioning_290.c index b27e62c9218..cd5939b7e63 100644 --- a/source/blender/blenloader/intern/versioning_290.c +++ b/source/blender/blenloader/intern/versioning_290.c @@ -286,6 +286,12 @@ static void seq_convert_transform_crop_2(const Scene *scene, char name_esc[(sizeof(seq->name) - 2) * 2], *path; BLI_str_escape(name_esc, seq->name + 2, sizeof(name_esc)); + path = BLI_sprintfN("sequence_editor.sequences_all[\"%s\"].transform.scale_x", name_esc); + seq_convert_transform_animation_2(scene, path, scale_to_fit_factor); + MEM_freeN(path); + path = BLI_sprintfN("sequence_editor.sequences_all[\"%s\"].transform.scale_y", name_esc); + seq_convert_transform_animation_2(scene, path, scale_to_fit_factor); + MEM_freeN(path); path = BLI_sprintfN("sequence_editor.sequences_all[\"%s\"].crop.min_x", name_esc); seq_convert_transform_animation_2(scene, path, 1 / scale_to_fit_factor); MEM_freeN(path); |