[Bf-blender-cvs] [797fd352d73] temp-vse-preview-transform: Fix incorrect initial origin value

Richard Antalik noreply at git.blender.org
Sun Sep 12 19:03:38 CEST 2021


Commit: 797fd352d7308dfab421d7140d03f143a903cc0b
Author: Richard Antalik
Date:   Sun Sep 12 18:10:18 2021 +0200
Branches: temp-vse-preview-transform
https://developer.blender.org/rB797fd352d7308dfab421d7140d03f143a903cc0b

Fix incorrect initial origin value

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

M	source/blender/sequencer/intern/sequencer.c

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

diff --git a/source/blender/sequencer/intern/sequencer.c b/source/blender/sequencer/intern/sequencer.c
index 00ae805a470..d3f8411cf0a 100644
--- a/source/blender/sequencer/intern/sequencer.c
+++ b/source/blender/sequencer/intern/sequencer.c
@@ -79,6 +79,8 @@ static Strip *seq_strip_alloc(int type)
     strip->transform = MEM_callocN(sizeof(struct StripTransform), "StripTransform");
     strip->transform->scale_x = 1;
     strip->transform->scale_y = 1;
+    strip->transform->origin[0] = 0.5f;
+    strip->transform->origin[1] = 0.5f;
     strip->crop = MEM_callocN(sizeof(struct StripCrop), "StripCrop");
   }



More information about the Bf-blender-cvs mailing list