Fixed "bug" #28611: Subdiv value for icosphere should not be below 1.
authorBastien Montagne <montagne29@wanadoo.fr>
Mon, 12 Sep 2011 08:27:21 +0000 (08:27 +0000)
committerBastien Montagne <montagne29@wanadoo.fr>
Mon, 12 Sep 2011 08:27:21 +0000 (08:27 +0000)
source/blender/editors/mesh/editmesh_add.c

index 01d0b1bbdc90496f023795d03341b56a596ba458..0c819cd76495082036a1e56e1fd758a404d6fd0e 100644 (file)
@@ -1721,7 +1721,7 @@ void MESH_OT_primitive_ico_sphere_add(wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* props */
-       RNA_def_int(ot->srna, "subdivisions", 2, 0, INT_MAX, "Subdivisions", "", 0, 8);
+       RNA_def_int(ot->srna, "subdivisions", 2, 1, INT_MAX, "Subdivisions", "", 1, 8);
        RNA_def_float(ot->srna, "size", 1.0f, 0.0f, FLT_MAX, "Size", "", 0.001f, 100.00);
 
        ED_object_add_generic_props(ot, TRUE);