[Bf-blender-cvs] [5fe24ce2952] master: Fix T84010: Missing scale animation versioning code

Richard Antalik noreply at git.blender.org
Mon Dec 21 11:37:02 CET 2020


Commit: 5fe24ce2952328a85c7ff87c084a6c1e6232073c
Author: Richard Antalik
Date:   Mon Dec 21 11:25:21 2020 +0100
Branches: master
https://developer.blender.org/rB5fe24ce2952328a85c7ff87c084a6c1e6232073c

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`

===================================================================

M	source/blender/blenloader/intern/versioning_290.c

===================================================================

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



More information about the Bf-blender-cvs mailing list