diff options
author | Julian Eisel <julian@blender.org> | 2021-07-30 19:55:03 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2021-07-30 20:07:51 +0300 |
commit | f7836019b37152558f6808f81eea6344aa8d9608 (patch) | |
tree | 39c2eeccae7b7eb143557328afaab92687137e9b /source/blender/editors/space_file/file_ops.c | |
parent | 9ac782b823093c1e28fb176b765069e12380c711 (diff) |
Fix incorrect poll function used for file path dropping
The operator to drop file paths into the File Browser was just checking
if there's an active window. This wasn't really an issue since the
operator was only used as drop-operator for the File Browser. But the
operator would show up in the operator search. Plus, for asset browsing,
we'll also have to check the file browsing mode, so the more specific
poll function will be needed.
Diffstat (limited to 'source/blender/editors/space_file/file_ops.c')
-rw-r--r-- | source/blender/editors/space_file/file_ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_file/file_ops.c b/source/blender/editors/space_file/file_ops.c index 7c608e2115d..ac59b4ce7b5 100644 --- a/source/blender/editors/space_file/file_ops.c +++ b/source/blender/editors/space_file/file_ops.c @@ -2241,7 +2241,7 @@ void FILE_OT_filepath_drop(wmOperatorType *ot) ot->idname = "FILE_OT_filepath_drop"; ot->exec = filepath_drop_exec; - ot->poll = WM_operator_winactive; + ot->poll = ED_operator_file_active; RNA_def_string_file_path(ot->srna, "filepath", "Path", FILE_MAX, "", ""); } |