[Bf-blender-cvs] [20d0bb43afc] master: GPencil: Swap positions of Pie menu options for Vertex Paint and Weight Paint

Antonio Vazquez noreply at git.blender.org
Tue Jan 26 16:16:05 CET 2021


Commit: 20d0bb43afc84c1161e693ae75ab19ba3f322077
Author: Antonio Vazquez
Date:   Tue Jan 26 15:28:17 2021 +0100
Branches: master
https://developer.blender.org/rB20d0bb43afc84c1161e693ae75ab19ba3f322077

GPencil: Swap positions of Pie menu options for Vertex Paint and Weight Paint

This keep the same logic used with meshes because now the Weight Paint and Vertex Paint are not in the same position for grease pencil.

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

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 faa20e642cf..c418c8eb4dc 100644
--- a/source/blender/makesrna/intern/rna_object.c
+++ b/source/blender/makesrna/intern/rna_object.c
@@ -85,16 +85,16 @@ const EnumPropertyItem rna_enum_object_mode_items[] = {
      ICON_GREASEPENCIL,
      "Draw",
      "Paint Grease Pencil Strokes"},
-    {OB_MODE_VERTEX_GPENCIL,
-     "VERTEX_GPENCIL",
-     ICON_VPAINT_HLT,
-     "Vertex Paint",
-     "Grease Pencil Vertex Paint Strokes"},
     {OB_MODE_WEIGHT_GPENCIL,
      "WEIGHT_GPENCIL",
      ICON_WPAINT_HLT,
      "Weight Paint",
      "Grease Pencil Weight Paint Strokes"},
+    {OB_MODE_VERTEX_GPENCIL,
+     "VERTEX_GPENCIL",
+     ICON_VPAINT_HLT,
+     "Vertex Paint",
+     "Grease Pencil Vertex Paint Strokes"},
     {0, NULL, 0, NULL, NULL},
 };



More information about the Bf-blender-cvs mailing list