[Bf-blender-cvs] [5e356cc5c89] master: GP: Cleanup missing brackets

Antonioya noreply at git.blender.org
Sat Jan 12 08:36:15 CET 2019


Commit: 5e356cc5c89b96a1d66764501116487f1966e8e4
Author: Antonioya
Date:   Sat Jan 12 08:36:00 2019 +0100
Branches: master
https://developer.blender.org/rB5e356cc5c89b96a1d66764501116487f1966e8e4

GP: Cleanup missing brackets

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

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

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

diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c
index b6b70ff3dfd..b138fa8a0d2 100644
--- a/source/blender/editors/gpencil/gpencil_paint.c
+++ b/source/blender/editors/gpencil/gpencil_paint.c
@@ -2474,20 +2474,27 @@ static void gpencil_draw_status_indicators(bContext *C, tGPsdata *p)
 #endif
 
 		case GP_STATUS_IDLING:
+		{
 			/* print status info */
 			switch (p->paintmode) {
 				case GP_PAINTMODE_ERASER:
+				{
 					ED_workspace_status_text(C, IFACE_("Grease Pencil Erase Session: Hold and drag LMB or RMB to erase | "
 						"ESC/Enter to end  (or click outside this area)"));
 					break;
+				}
 				case GP_PAINTMODE_DRAW_STRAIGHT:
+				{
 					ED_workspace_status_text(C, IFACE_("Grease Pencil Line Session: Hold and drag LMB to draw | "
 						"ESC/Enter to end  (or click outside this area)"));
 					break;
+				}
 				case GP_PAINTMODE_SET_CP:
+				{
 					ED_workspace_status_text(C, IFACE_("Grease Pencil Guides: LMB click and release to place reference point | "
 						"Esc/RMB to cancel"));
 					break;
+				}
 				case GP_PAINTMODE_DRAW:
 				{
 					GP_Sculpt_Guide *guide = &p->scene->toolsettings->gp_sculpt.guide;
@@ -2501,21 +2508,26 @@ static void gpencil_draw_status_indicators(bContext *C, tGPsdata *p)
 					break;
 				}
 				case GP_PAINTMODE_DRAW_POLY:
+				{
 					ED_workspace_status_text(C, IFACE_("Grease Pencil Poly Session: LMB click to place next stroke vertex | "
 						"Release Shift/ESC/Enter to end  (or click outside this area)"));
 					break;
-
+				}
 				default: /* unhandled future cases */
+				{
 					ED_workspace_status_text(C, IFACE_("Grease Pencil Session: ESC/Enter to end   (or click outside this area)"));
 					break;
+				}
 			}
 			break;
-
+		}
 		case GP_STATUS_ERROR:
 		case GP_STATUS_DONE:
+		{
 			/* clear status string */
 			ED_workspace_status_text(C, NULL);
 			break;
+		}
 		case GP_STATUS_PAINTING:
 			break;
 	}



More information about the Bf-blender-cvs mailing list