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:
parent
b1d3b14711
commit
16264aebe6
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue