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:
authorRichard Antalik <richardantalik@gmail.com>2020-12-21 13:25:21 +0300
committerRichard Antalik <richardantalik@gmail.com>2020-12-21 13:36:39 +0300
commit5fe24ce2952328a85c7ff87c084a6c1e6232073c (patch)
tree9ad183206ed9a79236ccca46459c594b0440a7f2 /source/blender/blenloader
parentc34ba268560bd530e9458298a07f21487278a483 (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')
-rw-r--r--source/blender/blenloader/intern/versioning_290.c6
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);