Fix T52514: don't clear filename when dropping directory path in file browser.
authorBrecht Van Lommel <brechtvanlommel@gmail.com>
Thu, 5 Oct 2017 22:18:57 +0000 (00:18 +0200)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Thu, 5 Oct 2017 22:18:57 +0000 (00:18 +0200)
source/blender/editors/space_file/file_ops.c

index b7228f634bfd6bb854a924b78c1b9e2aa2011931..ab1bcbaa8b508ae084731f5594363fa727922828 100644 (file)
@@ -1302,7 +1302,6 @@ void file_sfile_filepath_set(SpaceFile *sfile, const char *filepath)
 
        if (BLI_is_dir(filepath)) {
                BLI_strncpy(sfile->params->dir, filepath, sizeof(sfile->params->dir));
-               sfile->params->file[0] = '\0';
        }
        else {
                if ((sfile->params->flag & FILE_DIRSEL_ONLY) == 0) {