Fix #22978: wrong property min/max on icosphere subdivisions.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Fri, 23 Jul 2010 10:42:59 +0000 (10:42 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Fri, 23 Jul 2010 10:42:59 +0000 (10:42 +0000)
source/blender/editors/mesh/editmesh_add.c

index c88e40d9cc307ca1390cc48c0d829f709f90580a..6cb6695cebceca4e62e5387805ef7ee4412937f4 100644 (file)
@@ -1652,7 +1652,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, 6, "Subdivisions", "", 0, 8);
+       RNA_def_int(ot->srna, "subdivisions", 2, 0, INT_MAX, "Subdivisions", "", 0, 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);