Blender Git Commit Log

Git Commits -> Revision 6c6f3ba

Revision 6c6f3ba by Richard Antalik (master)
March 30, 2021, 00:58 (GMT)
VSE: Fix image adding inconsistency

When adding images with operator, image file path is split into filename
and directory passed to load function in name and path fields of
SeqLoadData struct. This is because when loading images directory
and filenames are split.

RNA API function passes whole path in path filed.

Apart from loading API inconsistency, this causes initial image loading
to fail, so strip resolution is not set. Also name field of SeqLoadData
should be reserved for strip name.

Let operator code concatenate and split filepath when needed so loading
API can be consistent with RNA API and also between strip types.

Reviewed By: sergey

Differential Revision: https://developer.blender.org/D10818

Commit Details:

Full Hash: 6c6f3baaa8c5d3a0cc3eb033e93cc6fb0f5721cc
Parent Commit: 7d46791
Lines Changed: +20, -23

2 Modified Paths:

/source/blender/editors/space_sequencer/sequencer_add.c (+19, -22) (Diff)
/source/blender/sequencer/intern/strip_add.c (+1, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021