fix [#33422] Change Path/Files problem - selected strip directory doesn't work

This commit is contained in:
Campbell Barton
2012-12-06 02:38:39 +00:00
parent 5db4682e93
commit 4b102e93fb

View File

@@ -3076,8 +3076,12 @@ static int sequencer_change_path_invoke(bContext *C, wmOperator *op, wmEvent *UN
{
Scene *scene = CTX_data_scene(C);
Sequence *seq = BKE_sequencer_active_get(scene);
char filepath[FILE_MAX];
BLI_join_dirfile(filepath, sizeof(filepath), seq->strip->dir, seq->strip->stripdata->name);
RNA_string_set(op->ptr, "directory", seq->strip->dir);
RNA_string_set(op->ptr, "filepath", filepath);
/* set default display depending on seq type */
if (seq->type == SEQ_TYPE_IMAGE) {