VSE: reset strip transform with "Set Render Size" operator

Reset the active strip offset and scale, in the "Set Render Size"
operator (`SEQUENCER_OT_rendersize`). This ensures that the active strip
will actually fit the new render size, which is what the operator is
intended to achieve.
This commit is contained in:
Sybren A. Stüvel
2021-04-23 16:39:21 +02:00
parent 5e509f966f
commit 8aa8537632

View File

@@ -2305,7 +2305,13 @@ static int sequencer_rendersize_exec(bContext *C, wmOperator *UNUSED(op))
scene->r.xsch = se->orig_width;
scene->r.ysch = se->orig_height;
active_seq->strip->transform->scale_x = active_seq->strip->transform->scale_y = 1.0f;
active_seq->strip->transform->xofs = active_seq->strip->transform->yofs = 0.0f;
SEQ_relations_invalidate_cache_preprocessed(scene, active_seq);
WM_event_add_notifier(C, NC_SCENE | ND_RENDER_OPTIONS, scene);
WM_event_add_notifier(C, NC_SPACE | ND_SPACE_SEQUENCER, NULL);
return OPERATOR_FINISHED;
}