[Bf-blender-cvs] [c82efd3276b] master: Fix T52514: don't clear filename when dropping directory path in file browser.
Brecht Van Lommel
noreply at git.blender.org
Fri Oct 6 00:21:13 CEST 2017
Commit: c82efd3276b2f377bc9420eb7fb75d20d2a7a88a
Author: Brecht Van Lommel
Date: Fri Oct 6 00:18:57 2017 +0200
Branches: master
https://developer.blender.org/rBc82efd3276b2f377bc9420eb7fb75d20d2a7a88a
Fix T52514: don't clear filename when dropping directory path in file browser.
===================================================================
M source/blender/editors/space_file/file_ops.c
===================================================================
diff --git a/source/blender/editors/space_file/file_ops.c b/source/blender/editors/space_file/file_ops.c
index b7228f634bf..ab1bcbaa8b5 100644
--- a/source/blender/editors/space_file/file_ops.c
+++ b/source/blender/editors/space_file/file_ops.c
@@ -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) {
More information about the Bf-blender-cvs
mailing list