[Bf-blender-cvs] [50cd4444df8] temp-vse-preview-transform2: Fix incorrect initial origin value
Richard Antalik
noreply at git.blender.org
Wed Sep 15 17:19:55 CEST 2021
Commit: 50cd4444df86b23f4780abb2f1a10562e733cf22
Author: Richard Antalik
Date: Sun Sep 12 18:10:18 2021 +0200
Branches: temp-vse-preview-transform2
https://developer.blender.org/rB50cd4444df86b23f4780abb2f1a10562e733cf22
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