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:
authorCampbell Barton <ideasman42@gmail.com>2015-01-31 20:15:34 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-01-31 20:19:55 +0300
commit26f9a9245387ced59214840f99ccf4aabc0c39f4 (patch)
treed1a16bf0eeea32e24a22c4999f48eb1fb2cceaf2 /source/blender
parent595675ea7aa31814a641e823ae03dfbe405c2edb (diff)
WM: empty menu so addons can extend the splash
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/windowmanager/intern/wm_operators.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c
index 631201befc4..aa3788bbc90 100644
--- a/source/blender/windowmanager/intern/wm_operators.c
+++ b/source/blender/windowmanager/intern/wm_operators.c
@@ -2028,6 +2028,14 @@ static uiBlock *wm_block_create_splash(bContext *C, ARegion *ar, void *UNUSED(ar
uiItemO(col, NULL, ICON_RECOVER_LAST, "WM_OT_recover_last_session");
uiItemL(col, "", ICON_NONE);
+ mt = WM_menutype_find("USERPREF_MT_splash_footer", false);
+ if (mt) {
+ Menu menu = {NULL};
+ menu.layout = uiLayoutColumn(layout, false);
+ menu.type = mt;
+ mt->draw(C, &menu);
+ }
+
UI_block_bounds_set_centered(block, 0);
return block;