[Bf-blender-cvs] [ecc09451179] blender2.8: UI: show favourites from properties-space in the 3D view

Campbell Barton noreply at git.blender.org
Mon Jul 2 15:57:43 CEST 2018


Commit: ecc094511798e0c5ae7a139b3f9f1a24895c053e
Author: Campbell Barton
Date:   Mon Jul 2 15:49:51 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBecc094511798e0c5ae7a139b3f9f1a24895c053e

UI: show favourites from properties-space in the 3D view

This allows settings to be toggled in the 3D view.

===================================================================

M	source/blender/editors/screen/screen_user_menu.c

===================================================================

diff --git a/source/blender/editors/screen/screen_user_menu.c b/source/blender/editors/screen/screen_user_menu.c
index f62dc1ee500..e945a5ae291 100644
--- a/source/blender/editors/screen/screen_user_menu.c
+++ b/source/blender/editors/screen/screen_user_menu.c
@@ -187,6 +187,7 @@ static void screen_user_menu_draw(const bContext *C, Menu *menu)
 	bUserMenu *um_array[] = {
 		BKE_blender_user_menu_find(&U.user_menus, sl->spacetype, context),
 		(sl->spacetype != SPACE_TOPBAR) ? BKE_blender_user_menu_find(&U.user_menus, SPACE_TOPBAR, context) : NULL,
+		(sl->spacetype == SPACE_VIEW3D) ? BKE_blender_user_menu_find(&U.user_menus, SPACE_BUTS, context) : NULL,
 	};
 	for (int um_index = 0; um_index < ARRAY_SIZE(um_array); um_index++) {
 		bUserMenu *um = um_array[um_index];



More information about the Bf-blender-cvs mailing list