Commit: db6d0ca6e90b1a643ccb6747cabb7403686da3ee
Author: Antonio Vazquez
Date:   Tue Jul 10 13:29:14 2018 +0200
Branches: greasepencil-object
https://developer.blender.org/rBdb6d0ca6e90b1a643ccb6747cabb7403686da3ee

Undo context changes

This can be needed by pending areas.

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

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 30e996b1fb4..62115aea11d 100644
--- a/source/blender/editors/space_buttons/space_buttons.c
+++ b/source/blender/editors/space_buttons/space_buttons.c
@@ -268,6 +268,15 @@ 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_SCULPT:
+                       ARRAY_SET_ITEMS(contexts, ".greasepencil_sculpt");
+                       break;
+               case CTX_MODE_GPENCIL_WEIGHT:
+                       ARRAY_SET_ITEMS(contexts, ".greasepencil_weight");
+                       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

Reply via email to