Fix T52514: don't clear filename when dropping directory path in file browser.
This commit is contained in:
parent
64f8cc3e7d
commit
c82efd3276
Notes:
blender-bot
2023-06-21 19:23:24 +02:00
Referenced by issue #53683, 2.79a release Referenced by issue #52514, Drag'n'drop folder to file browser will clear filename on macOS
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue