Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-06-25 14:40:15 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-06-25 14:40:15 +0400
commit02bcfa19509c900d40e9ee3edada8cf068ea32a2 (patch)
tree115168efcbcd0ce899c8284313dc934e7ce9aa79 /source/blender/editors/object/object_vgroup.c
parent436c546d67162530c8b97a87a8bf978a9015aa31 (diff)
new weight operators had zero min/max range for the 'weight_group'
Diffstat (limited to 'source/blender/editors/object/object_vgroup.c')
-rw-r--r--source/blender/editors/object/object_vgroup.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/editors/object/object_vgroup.c b/source/blender/editors/object/object_vgroup.c
index c5efa91d105..91a23eab2b3 100644
--- a/source/blender/editors/object/object_vgroup.c
+++ b/source/blender/editors/object/object_vgroup.c
@@ -4121,8 +4121,8 @@ void OBJECT_OT_vertex_weight_paste(wmOperatorType *ot)
ot->idname = "OBJECT_OT_vertex_weight_paste";
ot->description = "Copy this group's weight to other selected verts";
- prop = RNA_def_int(ot->srna, "weight_group",
- -1, 0, 0, "Weight Index", "Index of source weight in active Weight Group", 0, 0);
+ prop = RNA_def_int(ot->srna, "weight_group", -1, -1, INT_MAX, "Weight Index",
+ "Index of source weight in active Weight Group", -1, INT_MAX);
RNA_def_property_flag(prop, PROP_SKIP_SAVE | PROP_HIDDEN);
/* api callbacks */
@@ -4153,8 +4153,8 @@ void OBJECT_OT_vertex_weight_delete(wmOperatorType *ot)
ot->idname = "OBJECT_OT_vertex_weight_delete";
ot->description = "Delete this weight from the vertex";
- prop = RNA_def_int(ot->srna, "weight_group",
- -1, 0, 0, "Weight Index", "Index of source weight in active Weight Group", 0, 0);
+ prop = RNA_def_int(ot->srna, "weight_group", -1, -1, INT_MAX, "Weight Index",
+ "Index of source weight in active Weight Group", -1, INT_MAX);
RNA_def_property_flag(prop, PROP_SKIP_SAVE | PROP_HIDDEN);
/* api callbacks */
@@ -4187,8 +4187,8 @@ void OBJECT_OT_vertex_weight_set_active(wmOperatorType *ot)
ot->idname = "OBJECT_OT_vertex_weight_set_active";
ot->description = "Set as active Vertex Group";
- prop = RNA_def_int(ot->srna, "weight_group",
- -1, 0, 0, "Weight Index", "Index of source weight in active Weight Group", 0, 0);
+ prop = RNA_def_int(ot->srna, "weight_group", -1, -1, INT_MAX, "Weight Index",
+ "Index of source weight in active Weight Group", -1, INT_MAX);
RNA_def_property_flag(prop, PROP_SKIP_SAVE | PROP_HIDDEN);
/* api callbacks */