Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Eisel <julian@blender.org>2021-07-30 20:03:02 +0300
committerJulian Eisel <julian@blender.org>2021-07-30 20:07:51 +0300
commit0b10a964741d19cf7ada6d72cfaa6ffea9eded4b (patch)
treeba5fb3f59c14e0058d8ab244c924eaaec61ed5e1 /source/blender/editors/include/ED_fileselect.h
parentf7836019b37152558f6808f81eea6344aa8d9608 (diff)
Assets: Disable File Browser only operators for asset browsing
These operators shouldn't be available in the Asset Browser. https://developer.blender.org/T83556 Added a comment to each operator poll assignment to explicitly mention the intention. That should also remind devs to decide if the operator should apply for both file & asset browsing when copy & pasting operator definition code.
Diffstat (limited to 'source/blender/editors/include/ED_fileselect.h')
-rw-r--r--source/blender/editors/include/ED_fileselect.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/include/ED_fileselect.h b/source/blender/editors/include/ED_fileselect.h
index e57e2316d93..82057c726a5 100644
--- a/source/blender/editors/include/ED_fileselect.h
+++ b/source/blender/editors/include/ED_fileselect.h
@@ -140,6 +140,7 @@ void ED_fileselect_clear(struct wmWindowManager *wm, struct SpaceFile *sfile);
void ED_fileselect_exit(struct wmWindowManager *wm, struct SpaceFile *sfile);
+bool ED_fileselect_is_file_browser(const struct SpaceFile *sfile);
bool ED_fileselect_is_asset_browser(const struct SpaceFile *sfile);
struct ID *ED_fileselect_active_asset_get(const struct SpaceFile *sfile);