match function names for clip/image spaces
[blender.git] / source / blender / editors / transform / transform_snap.c
index 0ea48e81029f7a0251fc4a85ec5e26287e8f9e7f..7c86b697437d4dde391666ef1071af4122a9c80f 100644 (file)
@@ -206,7 +206,7 @@ void drawSnapping(const struct bContext *C, TransInfo *t)
                        myortho2(G.v2d->cur.xmin, G.v2d->cur.xmax, G.v2d->cur.ymin, G.v2d->cur.ymax);
                        glLoadIdentity();
                        
-                       ED_space_image_aspect(t->sa->spacedata.first, &xuser_aspx, &yuser_asp);
+                       ED_space_image_get_aspect(t->sa->spacedata.first, &xuser_aspx, &yuser_asp);
                        ED_space_image_width(t->sa->spacedata.first, &wi, &hi);
                        w = (((float)wi) / 256.0f) * G.sima->zoom * xuser_asp;
                        h = (((float)hi) / 256.0f) * G.sima->zoom * yuser_asp;
@@ -927,7 +927,7 @@ static void CalcSnapGeometry(TransInfo *t, float *UNUSED(vec))
                UI_view2d_region_to_view(&t->ar->v2d, t->mval[0], t->mval[1], co, co + 1);
 
                if (ED_uvedit_nearest_uv(t->scene, t->obedit, ima, co, t->tsnap.snapPoint)) {
-                       ED_space_image_uv_aspect(t->sa->spacedata.first, &aspx, &aspy);
+                       ED_space_image_get_uv_aspect(t->sa->spacedata.first, &aspx, &aspy);
                        t->tsnap.snapPoint[0] *= aspx;
                        t->tsnap.snapPoint[1] *= aspy;
 
@@ -2135,7 +2135,7 @@ static void applyGrid(TransInfo *t, float *val, int max_index, float fac[3], Gea
        
        /* evil hack - snapping needs to be adapted for image aspect ratio */
        if ((t->spacetype == SPACE_IMAGE) && (t->mode == TFM_TRANSLATION)) {
-               ED_space_image_uv_aspect(t->sa->spacedata.first, asp, asp + 1);
+               ED_space_image_get_uv_aspect(t->sa->spacedata.first, asp, asp + 1);
        }
 
        for (i = 0; i <= max_index; i++) {