[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [57731] trunk/blender/source/blender/ editors/object/object_vgroup.c: new weight operators had zero min/ max range for the 'weight_group'

Campbell Barton ideasman42 at gmail.com
Tue Jun 25 12:40:15 CEST 2013


Revision: 57731
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=57731
Author:   campbellbarton
Date:     2013-06-25 10:40:15 +0000 (Tue, 25 Jun 2013)
Log Message:
-----------
new weight operators had zero min/max range for the 'weight_group'

Modified Paths:
--------------
    trunk/blender/source/blender/editors/object/object_vgroup.c

Modified: trunk/blender/source/blender/editors/object/object_vgroup.c
===================================================================
--- trunk/blender/source/blender/editors/object/object_vgroup.c	2013-06-25 10:30:07 UTC (rev 57730)
+++ trunk/blender/source/blender/editors/object/object_vgroup.c	2013-06-25 10:40:15 UTC (rev 57731)
@@ -4121,8 +4121,8 @@
 	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 @@
 	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 @@
 	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 */




More information about the Bf-blender-cvs mailing list