[Bf-committers] Compiling error
Joilnen Batista Leite
vma_bad_list at yahoo.com
Tue Mar 30 11:55:33 CEST 2010
getting:
e/blender/obj/linux-glibc2.7-i386/blender/ed_interface/view2d_ops.o
view2d_ops.c: In function 'view_zoomstep_apply':
view2d_ops.c:636: error: 'vpd' undeclared (first use in this function)
view2d_ops.c:636: error: (Each undeclared identifier is reported only once
view2d_ops.c:636: error: for each function it appears in.)
view2d_ops.c: In function 'view_zoomdrag_apply':
view2d_ops.c:826: error: 'vpd' undeclared (first use in this function)
view2d_ops.c: In function 'view_borderzoom_exec':
view2d_ops.c:1095: error: 'vpd' undeclared (first use in this function)
view2d_ops.c: In function 'scroller_activate_apply':
view2d_ops.c:1338: error: 'vpd' undeclared (first use in this function)
view2d_ops.c: In function 'reset_exec':
view2d_ops.c:1528: error: 'vpd' undeclared (first use in this function)
make[4]: *** [/mnt/hda1/mybkp1/blender_source/blender/obj/linux-glibc2.7-i386/blender/ed_interface/view2d_ops.o] Error 1
make[3]: *** [all] Error 1
make[2]: *** [all] Error 1
make[1]: *** [all] Error 1
make: *** [all] Error 1
------------------------------------------------------------------------
a probably fix:
Index: source/blender/editors/interface/view2d_ops.c
===================================================================
--- source/blender/editors/interface/view2d_ops.c (revision 27855)
+++ source/blender/editors/interface/view2d_ops.c (working copy)
@@ -565,6 +565,9 @@
ARegion *ar= CTX_wm_region(C);
View2D *v2d= &ar->v2d;
float dx, dy, facx, facy;
+ v2dViewPanData *vpd;
+
+ vpd= op->customdata;
/* calculate amount to move view by, ensuring symmetry so the
* old zoom level is restored after zooming back the same amount */
@@ -776,6 +779,9 @@
v2dViewZoomData *vzd= op->customdata;
View2D *v2d= vzd->v2d;
float dx, dy;
+ v2dViewPanData *vpd;
+
+ vpd= op->customdata;
/* get amount to move view by */
dx= RNA_float_get(op->ptr, "deltax");
@@ -1037,6 +1043,9 @@
View2D *v2d= &ar->v2d;
rctf rect;
int event_type;
+ v2dViewPanData *vpd;
+
+ vpd= op->customdata;
/* convert coordinates of rect to 'tot' rect coordinates */
UI_view2d_region_to_view(v2d, RNA_int_get(op->ptr, "xmin"), RNA_int_get(op->ptr, "ymin"), &rect.xmin, &rect.ymin);
@@ -1295,6 +1304,9 @@
v2dScrollerMove *vsm= op->customdata;
View2D *v2d= vsm->v2d;
float temp;
+ v2dViewPanData *vpd;
+
+ vpd= op->customdata;
/* calculate amount to move view by */
temp= vsm->fac * vsm->delta;
@@ -1490,7 +1502,10 @@
ARegion *ar= CTX_wm_region(C);
View2D *v2d= &ar->v2d;
int winx, winy;
+ v2dViewPanData *vpd;
+ vpd= op->customdata;
+
/* zoom 1.0 */
winx= (float)(v2d->mask.xmax - v2d->mask.xmin + 1);
winy= (float)(v2d->mask.ymax - v2d->mask.ymin + 1);
--------------
Joilnen
More information about the Bf-committers
mailing list