[Bf-blender-cvs] [b929682dab2] greasepencil-object: Remove header text functions

Antonio Vazquez noreply at git.blender.org
Wed Jan 10 19:24:59 CET 2018


Commit: b929682dab27e9b19e53076b3a42f18d0601f38c
Author: Antonio Vazquez
Date:   Wed Jan 10 19:12:17 2018 +0100
Branches: greasepencil-object
https://developer.blender.org/rBb929682dab27e9b19e53076b3a42f18d0601f38c

Remove header text functions

This text is not used in this operator

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

M	source/blender/editors/gpencil/gpencil_colorpick.c

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

diff --git a/source/blender/editors/gpencil/gpencil_colorpick.c b/source/blender/editors/gpencil/gpencil_colorpick.c
index fab0e262ace..15a48461b87 100644
--- a/source/blender/editors/gpencil/gpencil_colorpick.c
+++ b/source/blender/editors/gpencil/gpencil_colorpick.c
@@ -161,15 +161,6 @@ static void gp_draw_fill_box(rcti *box, float ink[4], float fill[4], int offset)
 
 /* ----------------------- */
 /* Drawing                 */
-/* Helper: Draw status message while the user is running the operator */
-static void gpencil_colorpick_status_indicators(tGPDpick *tgpk)
-{
-	Scene *scene = tgpk->scene;
-	char status_str[UI_MAX_DRAW_STR];
-
-	BLI_snprintf(status_str, sizeof(status_str), IFACE_("Select: ESC/RMB cancel, LMB Select color"));
-	ED_area_headerprint(tgpk->sa, status_str);
-}
 
 /* draw a toolbar with all colors of the palette */
 static void gpencil_draw_color_table(const bContext *UNUSED(C), tGPDpick *tgpk)
@@ -335,9 +326,6 @@ static void gpencil_colorpick_exit(bContext *C, wmOperator *op)
 
 	/* don't assume that operator data exists at all */
 	if (tgpk) {
-		/* clear status message area */
-		ED_area_headerprint(tgpk->sa, NULL);
-
 		/* remove drawing handler */
 		if (tgpk->draw_handle_3d) {
 			ED_region_draw_cb_exit(tgpk->ar->type, tgpk->draw_handle_3d);
@@ -397,8 +385,6 @@ static int gpencil_colorpick_invoke(bContext *C, wmOperator *op, const wmEvent *
 	/* Enable custom drawing handlers */
 	tgpk->draw_handle_3d = ED_region_draw_cb_activate(tgpk->ar->type, gpencil_colorpick_draw_3d, tgpk, REGION_DRAW_POST_PIXEL);
 
-	gpencil_colorpick_status_indicators(tgpk);
-
 	WM_event_add_notifier(C, NC_GPENCIL | NA_EDITED, NULL);
 
 	/* add a modal handler for this operator*/



More information about the Bf-blender-cvs mailing list