Commit: 3583c3f8ddb988b1d7f5c909d7042b2722b252ba
Author: Antonio Vazquez
Date: Tue Jul 10 11:59:57 2018 +0200
Branches: greasepencil-object
https://developer.blender.org/rB3583c3f8ddb988b1d7f5c909d7042b2722b252ba
Move GPENCIL_PAINT context inside tools switch
===================================================================
M source/blender/editors/space_buttons/space_buttons.c
===================================================================
diff --git a/source/blender/editors/space_buttons/space_buttons.c
b/source/blender/editors/space_buttons/space_buttons.c
index 246d4f877d5..30e996b1fb4 100644
--- a/source/blender/editors/space_buttons/space_buttons.c
+++ b/source/blender/editors/space_buttons/space_buttons.c
@@ -249,6 +249,9 @@ static void buttons_main_region_layout_tool(const bContext
*C, ARegion *ar)
case CTX_MODE_OBJECT:
ARRAY_SET_ITEMS(contexts, ".objectmode");
break;
+ case CTX_MODE_GPENCIL_PAINT:
+ ARRAY_SET_ITEMS(contexts,
".greasepencil_paint");
+ break;
case CTX_MODE_GPENCIL_SCULPT:
ARRAY_SET_ITEMS(contexts,
".greasepencil_sculpt");
break;
@@ -265,9 +268,6 @@ static void buttons_main_region_layout_tool(const bContext
*C, ARegion *ar)
* workspace->tools_space_type because this value is not available
*/
switch (mode) {
- case CTX_MODE_GPENCIL_PAINT:
- ARRAY_SET_ITEMS(contexts, ".greasepencil_paint");
- break;
case CTX_MODE_GPENCIL_EDIT:
ARRAY_SET_ITEMS(contexts, ".greasepencil_edit");
break;
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs