fix [#33422] Change Path/Files problem - selected strip directory doesn't work
authorCampbell Barton <ideasman42@gmail.com>
Thu, 6 Dec 2012 02:38:39 +0000 (02:38 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 6 Dec 2012 02:38:39 +0000 (02:38 +0000)
source/blender/editors/space_sequencer/sequencer_edit.c

index 4e2bf982ff30495e413657665b34c19730916b8b..8cc1e31fee5457504f1cc7cd259ab482b5ed82b4 100644 (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) {