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:
authorAntonioya <blendergit@gmail.com>2018-11-02 19:30:09 +0300
committerAntonioya <blendergit@gmail.com>2018-11-02 21:28:36 +0300
commit982ca8c45ab6cf39cd059ed4ae0d6e60cd503bea (patch)
tree2cc65adbc22fcbeb992fe58bf93071b99a8b1a3d /source/blender/editors/include
parentc63d133f4dc2b227c6a5e5dbb23bcceae2c2eb7f (diff)
Add hide_buttons option to template_ID_preview
When use the template in the topbar for only select an ID is very annoying to have the buttons after the name and only adds noise to the selector. This option hide the number of users, new and delete buttons to get a cleaner topbar selector. By default the parameter is disabled in order to keep all existing code/UI running.
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r--source/blender/editors/include/UI_interface.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/include/UI_interface.h b/source/blender/editors/include/UI_interface.h
index 51347c7c230..e440f6a3d98 100644
--- a/source/blender/editors/include/UI_interface.h
+++ b/source/blender/editors/include/UI_interface.h
@@ -1042,7 +1042,8 @@ void uiTemplateIDBrowse(
const char *newop, const char *openop, const char *unlinkop, int filter);
void uiTemplateIDPreview(
uiLayout *layout, struct bContext *C, struct PointerRNA *ptr, const char *propname,
- const char *newop, const char *openop, const char *unlinkop, int rows, int cols, int filter);
+ const char *newop, const char *openop, const char *unlinkop, int rows, int cols,
+ int filter, const bool hide_buttons);
void uiTemplateIDTabs(
uiLayout *layout, struct bContext *C,
PointerRNA *ptr, const char *propname,