Grease Pencil: Tweaks to make tooltips show up for the different drawing tool
authorJoshua Leung <aligorith@gmail.com>
Sat, 20 Oct 2012 04:56:24 +0000 (04:56 +0000)
committerJoshua Leung <aligorith@gmail.com>
Sat, 20 Oct 2012 04:56:24 +0000 (04:56 +0000)
types available

source/blender/editors/gpencil/gpencil_paint.c

index d0b48772d851a807d00570461c2e6b1561bc82de..e5afbdba50b256e464d79027e9dd89eddf7ca463 100644 (file)
@@ -1888,10 +1888,10 @@ static int gpencil_draw_modal(bContext *C, wmOperator *op, wmEvent *event)
 /* ------------------------------- */
 
 static EnumPropertyItem prop_gpencil_drawmodes[] = {
-       {GP_PAINTMODE_DRAW, "DRAW", 0, "Draw Freehand", ""},
-       {GP_PAINTMODE_DRAW_STRAIGHT, "DRAW_STRAIGHT", 0, "Draw Straight Lines", ""},
-       {GP_PAINTMODE_DRAW_POLY, "DRAW_POLY", 0, "Draw Poly Line", ""},
-       {GP_PAINTMODE_ERASER, "ERASER", 0, "Eraser", ""},
+       {GP_PAINTMODE_DRAW, "DRAW", 0, "Draw Freehand", "Draw freehand stroke(s)"},
+       {GP_PAINTMODE_DRAW_STRAIGHT, "DRAW_STRAIGHT", 0, "Draw Straight Lines", "Draw straight line segment(s)"},
+       {GP_PAINTMODE_DRAW_POLY, "DRAW_POLY", 0, "Draw Poly Line", "Click to place endpoints of straight line segments (connected)"},
+       {GP_PAINTMODE_ERASER, "ERASER", 0, "Eraser", "Erase Grease Pencil strokes"},
        {0, NULL, 0, NULL, NULL}
 };
 
@@ -1913,7 +1913,7 @@ void GPENCIL_OT_draw(wmOperatorType *ot)
        ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO | OPTYPE_BLOCKING;
        
        /* settings for drawing */
-       RNA_def_enum(ot->srna, "mode", prop_gpencil_drawmodes, 0, "Mode", "Way to interpret mouse movements");
+       ot->prop = RNA_def_enum(ot->srna, "mode", prop_gpencil_drawmodes, 0, "Mode", "Way to interpret mouse movements");
        
        RNA_def_collection_runtime(ot->srna, "stroke", &RNA_OperatorStrokeElement, "Stroke", "");
 }