[Bf-blender-cvs] [2400bc21ca9] greasepencil-object: GPencil: Fix default value for Palette sorting

Antonio Vazquez noreply at git.blender.org
Wed Feb 19 22:55:22 CET 2020


Commit: 2400bc21ca9d792088e9f992e7b8e3c74db78b2c
Author: Antonio Vazquez
Date:   Wed Feb 19 22:55:04 2020 +0100
Branches: greasepencil-object
https://developer.blender.org/rB2400bc21ca9d792088e9f992e7b8e3c74db78b2c

GPencil: Fix default value for Palette sorting

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

M	source/blender/editors/sculpt_paint/paint_ops.c

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

diff --git a/source/blender/editors/sculpt_paint/paint_ops.c b/source/blender/editors/sculpt_paint/paint_ops.c
index bd82f05c34b..34dfe50ca98 100644
--- a/source/blender/editors/sculpt_paint/paint_ops.c
+++ b/source/blender/editors/sculpt_paint/paint_ops.c
@@ -482,7 +482,7 @@ static void PALETTE_OT_sort(wmOperatorType *ot)
   /* flags */
   ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
 
-  ot->prop = RNA_def_enum(ot->srna, "type", sort_type, -1, "Type", "");
+  ot->prop = RNA_def_enum(ot->srna, "type", sort_type, 1, "Type", "");
 }
 
 /* Move colors in palette. */



More information about the Bf-blender-cvs mailing list