Fixed bug #28619: values of X/Y grid size were allowed to be below 3, when adding...
authorBastien Montagne <montagne29@wanadoo.fr>
Sun, 11 Sep 2011 15:26:46 +0000 (15:26 +0000)
committerBastien Montagne <montagne29@wanadoo.fr>
Sun, 11 Sep 2011 15:26:46 +0000 (15:26 +0000)
source/blender/editors/mesh/editmesh_add.c

index 8194528490a2e94b20c3eb4537bb7fb03a0d38da..a6f6c7c40575c95bd5eb7ddd81d1f8d714ccece2 100644 (file)
@@ -1609,8 +1609,8 @@ void MESH_OT_primitive_grid_add(wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* props */
-       RNA_def_int(ot->srna, "x_subdivisions", 10, INT_MIN, INT_MAX, "X Subdivisions", "", 3, 1000);
-       RNA_def_int(ot->srna, "y_subdivisions", 10, INT_MIN, INT_MAX, "Y Subdivisions", "", 3, 1000);
+       RNA_def_int(ot->srna, "x_subdivisions", 10, 3, INT_MAX, "X Subdivisions", "", 3, 1000);
+       RNA_def_int(ot->srna, "y_subdivisions", 10, 3, INT_MAX, "Y Subdivisions", "", 3, 1000);
        RNA_def_float(ot->srna, "size", 1.0f, 0.0, FLT_MAX, "Size", "", 0.001, FLT_MAX);
 
        ED_object_add_generic_props(ot, TRUE);