[Bf-blender-cvs] [ed4f204d864] blender2.8: WM: default operators to replace selection
Campbell Barton
noreply at git.blender.org
Tue Nov 13 04:06:34 CET 2018
Commit: ed4f204d86425098824cdf27b38f307ab04a86c0
Author: Campbell Barton
Date: Tue Nov 13 14:02:28 2018 +1100
Branches: blender2.8
https://developer.blender.org/rBed4f204d86425098824cdf27b38f307ab04a86c0
WM: default operators to replace selection
Tools now default to creating new selection.
===================================================================
M source/blender/windowmanager/intern/wm_operator_props.c
===================================================================
diff --git a/source/blender/windowmanager/intern/wm_operator_props.c b/source/blender/windowmanager/intern/wm_operator_props.c
index 0c3750baa4c..4515223f829 100644
--- a/source/blender/windowmanager/intern/wm_operator_props.c
+++ b/source/blender/windowmanager/intern/wm_operator_props.c
@@ -259,14 +259,14 @@ void WM_operator_properties_gesture_box(wmOperatorType *ot)
void WM_operator_properties_select_operation(wmOperatorType *ot)
{
static const EnumPropertyItem select_mode_items[] = {
+ {SEL_OP_SET, "SET", 0, "New", ""},
{SEL_OP_ADD, "ADD", 0, "Add", ""},
{SEL_OP_SUB, "SUB", 0, "Subtract", ""},
- {SEL_OP_SET, "SET", 0, "New", ""},
{SEL_OP_XOR, "XOR", 0, "Difference", ""},
{SEL_OP_AND, "AND", 0, "Intersect", ""},
{0, NULL, 0, NULL, NULL}
};
- PropertyRNA *prop = RNA_def_enum(ot->srna, "mode", select_mode_items, SEL_OP_ADD, "Mode", "");
+ PropertyRNA *prop = RNA_def_enum(ot->srna, "mode", select_mode_items, SEL_OP_SET, "Mode", "");
RNA_def_property_flag(prop, PROP_SKIP_SAVE);
}
More information about the Bf-blender-cvs
mailing list