Context: remove active_gpencil_brush
[blender.git] / source / blender / editors / screen / screen_context.c
index 287d0ad37b91de9002b693224630fe5de0e8c6d3..a33bea4d1becd5e69cd55f47aae6f6596add14ef 100644 (file)
@@ -86,7 +86,7 @@ const char *screen_context_dir[] = {
        "sequences", "selected_sequences", "selected_editable_sequences", /* sequencer */
        "gpencil_data", "gpencil_data_owner", /* grease pencil data */
        "visible_gpencil_layers", "editable_gpencil_layers", "editable_gpencil_strokes",
-       "active_gpencil_layer", "active_gpencil_frame", "active_gpencil_brush",
+       "active_gpencil_layer", "active_gpencil_frame",
        "active_operator", "selected_editable_fcurves",
        NULL};
 
@@ -578,14 +578,6 @@ int ed_screen_context(const bContext *C, const char *member, bContextDataResult
                        }
                }
        }
-       else if (CTX_data_equals(member, "active_gpencil_brush")) {
-               Brush *brush = BKE_paint_brush(&scene->toolsettings->gp_paint->paint);
-
-               if (brush) {
-                       CTX_data_pointer_set(result, &scene->id, &RNA_Brush, brush);
-                       return 1;
-               }
-       }
        else if (CTX_data_equals(member, "active_gpencil_frame")) {
                /* XXX: see comment for gpencil_data case... */
                bGPdata *gpd = ED_gpencil_data_get_active_direct((ID *)sc, sa, scene, obact);