View2D bug: zooming failed in node editor due to check for wrong
variable (keepzoom instead of keepofs :)
This commit is contained in:
Ton Roosendaal
2009-02-06 16:31:18 +00:00
parent 1646f053a5
commit 61fdeb1b2f

View File

@@ -488,11 +488,11 @@ static void view_zoomstep_apply(bContext *C, wmOperator *op)
dy= (v2d->cur.ymax - v2d->cur.ymin) * (float)RNA_float_get(op->ptr, "zoomfacy");
/* only move view on an axis if change is allowed */
if ((v2d->keepzoom & V2D_LOCKOFS_X)==0) {
if ((v2d->keepofs & V2D_LOCKOFS_X)==0) {
v2d->cur.xmin += dx;
v2d->cur.xmax -= dx;
}
if ((v2d->keepzoom & V2D_LOCKOFS_Y)==0) {
if ((v2d->keepofs & V2D_LOCKOFS_Y)==0) {
v2d->cur.ymin += dy;
v2d->cur.ymax -= dy;
}