[Bf-blender-cvs] [484d44ccc4d] greasepencil-object: Add missing context to buttons_main_region_layout_too()
Antonio Vazquez
noreply at git.blender.org
Thu Jun 14 18:42:02 CEST 2018
Commit: 484d44ccc4d4c41b056f2bfccf2dd8220fd36766
Author: Antonio Vazquez
Date: Thu Jun 14 18:41:35 2018 +0200
Branches: greasepencil-object
https://developer.blender.org/rB484d44ccc4d4c41b056f2bfccf2dd8220fd36766
Add missing context to buttons_main_region_layout_too()
===================================================================
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 2a4b130afb3..b2a790dd819 100644
--- a/source/blender/editors/space_buttons/space_buttons.c
+++ b/source/blender/editors/space_buttons/space_buttons.c
@@ -257,6 +257,18 @@ static void buttons_main_region_layout_tool(const bContext *C, SpaceButs *sbuts,
case CTX_MODE_OBJECT:
ARRAY_SET_ITEMS(contexts, ".todo");
break;
+ case CTX_MODE_GPENCIL_PAINT:
+ ARRAY_SET_ITEMS(contexts, ".greasepencil_paint");
+ break;
+ case CTX_MODE_GPENCIL_EDIT:
+ ARRAY_SET_ITEMS(contexts, ".greasepencil_edit");
+ break;
+ case CTX_MODE_GPENCIL_SCULPT:
+ ARRAY_SET_ITEMS(contexts, ".greasepencil_sculpt");
+ break;
+ case CTX_MODE_GPENCIL_WEIGHT:
+ ARRAY_SET_ITEMS(contexts, ".greasepencil_weight");
+ break;
}
}
else if (workspace->tools_space_type == SPACE_IMAGE) {
More information about the Bf-blender-cvs
mailing list