2.5 bugfix: 3d view zoom operator delta had wrong range.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 23 Nov 2009 17:07:30 +0000 (17:07 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 23 Nov 2009 17:07:30 +0000 (17:07 +0000)
source/blender/editors/space_view3d/view3d_edit.c

index f53f7fdba9ce2fddad98e41732176fa6d3b3e2d4..22dd7c6da87d72281cd599ad726d48a84820df90 100644 (file)
@@ -1001,7 +1001,7 @@ void VIEW3D_OT_zoom(wmOperatorType *ot)
        /* flags */
        ot->flag= OPTYPE_BLOCKING|OPTYPE_GRAB_POINTER;
 
-       RNA_def_int(ot->srna, "delta", 0, 0, INT_MAX, "Delta", "", 0, INT_MAX);
+       RNA_def_int(ot->srna, "delta", 0, INT_MIN, INT_MAX, "Delta", "", INT_MIN, INT_MAX);
        RNA_def_int(ot->srna, "mx", 0, 0, INT_MAX, "Zoom Position X", "", 0, INT_MAX);
        RNA_def_int(ot->srna, "my", 0, 0, INT_MAX, "Zoom Position Y", "", 0, INT_MAX);
 }