Fix sequencer transform test failing.

Issue was caused by using function `SEQ_render_give_stripelem` to obtain
first `StripElem`, but this function now takes retiming into account.

Since first element was meant to be obtained, point to it directly by
using `seq->strip->stripdata`.
This commit is contained in:
Richard Antalik 2022-07-01 08:59:03 +02:00
parent b1d3b14711
commit 16264aebe6
1 changed files with 2 additions and 2 deletions

View File

@ -160,7 +160,7 @@ static void seq_convert_transform_crop(const Scene *scene,
const uint32_t use_transform_flag = (1 << 16);
const uint32_t use_crop_flag = (1 << 17);
const StripElem *s_elem = SEQ_render_give_stripelem(scene, seq, seq->start);
const StripElem *s_elem = seq->strip->stripdata;
if (s_elem != NULL) {
image_size_x = s_elem->orig_width;
image_size_y = s_elem->orig_height;
@ -285,7 +285,7 @@ static void seq_convert_transform_crop_2(const Scene *scene,
Sequence *seq,
const eSpaceSeq_Proxy_RenderSize render_size)
{
const StripElem *s_elem = SEQ_render_give_stripelem(scene, seq, seq->start);
const StripElem *s_elem = seq->strip->stripdata;
if (s_elem == NULL) {
return;
}