diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2019-06-13 12:10:17 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2019-06-13 12:11:32 +0300 |
commit | 27537daee1b62aab0fb0d01b89b7d2c044e796cd (patch) | |
tree | ce21c2d33f5e73e0919a905aab8fa66248024b24 | |
parent | 8556b0da70ac5fc0c4530cc9de9238ecdf0ec678 (diff) |
Clear Datablocks Preview: add some more generic options.
Sometimes one may want to nuke all previews altogether, running the
operator for all eight individual ID types would be tedious then...
-rw-r--r-- | source/blender/windowmanager/intern/wm_operators.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c index 31205ab11f4..63ca46e05c6 100644 --- a/source/blender/windowmanager/intern/wm_operators.c +++ b/source/blender/windowmanager/intern/wm_operators.c @@ -3353,6 +3353,22 @@ static void WM_OT_previews_ensure(wmOperatorType *ot) /* Only types supporting previews currently. */ static const EnumPropertyItem preview_id_type_items[] = { + {FILTER_ID_SCE | FILTER_ID_GR | FILTER_ID_OB | FILTER_ID_MA | FILTER_ID_LA | FILTER_ID_WO | + FILTER_ID_TE | FILTER_ID_IM, + "ALL", + 0, + "All Types", + ""}, + {FILTER_ID_SCE | FILTER_ID_GR | FILTER_ID_OB, + "GEOMETRY", + 0, + "All Geometry Types", + "Clear previews for scenes, collections and objects"}, + {FILTER_ID_MA | FILTER_ID_LA | FILTER_ID_WO | FILTER_ID_TE | FILTER_ID_IM, + "SHADING", + 0, + "All Shading Types", + "Clear previews for materiasl, lights, worlds, textures and images"}, {FILTER_ID_SCE, "SCENE", 0, "Scenes", ""}, {FILTER_ID_GR, "GROUP", 0, "Groups", ""}, {FILTER_ID_OB, "OBJECT", 0, "Objects", ""}, |