From ff4c9d69ee4bf1764b6f4effa487e29e6c4ab985 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 12 Jan 2018 12:30:58 +1100 Subject: User Prefs: add new flag for app-template options For experimental options, outside the scope of typical preferences. While templates are developed we might want to make changes to behavior which aren't fully compatible with typical work-flows. Instead of mixing these options in with current preferences expose separately (we could even force disable them when templates aren't int use) --- source/blender/blenkernel/intern/blender.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source/blender/blenkernel/intern/blender.c') diff --git a/source/blender/blenkernel/intern/blender.c b/source/blender/blenkernel/intern/blender.c index bc47cfde143..f8a3f134bfb 100644 --- a/source/blender/blenkernel/intern/blender.c +++ b/source/blender/blenkernel/intern/blender.c @@ -280,7 +280,10 @@ void BKE_blender_userdef_app_template_data_swap(UserDef *userdef_a, UserDef *use DATA_SWAP(font_path_ui_mono); DATA_SWAP(keyconfigstr); - FLAG_SWAP(uiflag, int, USER_LOCK_UI_LAYOUT); + DATA_SWAP(app_flag); + + /* We could add others. */ + FLAG_SWAP(uiflag, int, USER_QUIT_PROMPT); #undef DATA_SWAP #undef LIST_SWAP -- cgit v1.2.3