[Bf-blender-cvs] [2e772908732] greasepencil-object: GP Mode Menu Tweaks

Joshua Leung noreply at git.blender.org
Wed Sep 20 03:13:01 CEST 2017


Commit: 2e77290873246abf053702de72f8fa169a97aebe
Author: Joshua Leung
Date:   Wed Sep 20 10:54:52 2017 +1200
Branches: greasepencil-object
https://developer.blender.org/rB2e77290873246abf053702de72f8fa169a97aebe

GP Mode Menu Tweaks

* Rename "Stroke Paint" mode to "Draw", and make it the last item
* Use standard EditMode icon

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

M	source/blender/makesrna/intern/rna_object.c

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

diff --git a/source/blender/makesrna/intern/rna_object.c b/source/blender/makesrna/intern/rna_object.c
index 3d3fd3773f3..8d0e04d93e0 100644
--- a/source/blender/makesrna/intern/rna_object.c
+++ b/source/blender/makesrna/intern/rna_object.c
@@ -70,10 +70,10 @@ EnumPropertyItem rna_enum_object_mode_items[] = {
 	{OB_MODE_WEIGHT_PAINT, "WEIGHT_PAINT", ICON_WPAINT_HLT, "Weight Paint", ""},
 	{OB_MODE_TEXTURE_PAINT, "TEXTURE_PAINT", ICON_TPAINT_HLT, "Texture Paint", ""},
 	{OB_MODE_PARTICLE_EDIT, "PARTICLE_EDIT", ICON_PARTICLEMODE, "Particle Edit", ""},
-	{OB_MODE_GPENCIL_EDIT, "GPENCIL_EDIT", ICON_GREASEPENCIL, "Edit Mode", "Edit Grease Pencil Strokes"},
+	{OB_MODE_GPENCIL_EDIT, "GPENCIL_EDIT", ICON_EDITMODE_HLT, "Edit Mode", "Edit Grease Pencil Strokes"},
 	{OB_MODE_GPENCIL_SCULPT, "GPENCIL_SCULPT", ICON_SCULPTMODE_HLT, "Sculpt Mode", "Sculpt Grease Pencil Strokes"},
-	{OB_MODE_GPENCIL_PAINT, "GPENCIL_PAINT", ICON_GPENCIL_STROKE_PAINT, "Stroke Paint", "Paint Grease Pencil Strokes" },
-	{OB_MODE_GPENCIL_WEIGHT, "GPENCIL_WEIGHT", ICON_WPAINT_HLT, "Weight Paint", "Grease Pencil Weight Paint Strokes" },
+	{OB_MODE_GPENCIL_WEIGHT, "GPENCIL_WEIGHT", ICON_WPAINT_HLT, "Weight Paint", "Grease Pencil Weight Paint Strokes"},
+	{OB_MODE_GPENCIL_PAINT, "GPENCIL_PAINT", ICON_GREASEPENCIL, "Draw", "Paint Grease Pencil Strokes"},
 	{0, NULL, 0, NULL, NULL}
 };



More information about the Bf-blender-cvs mailing list