From ff7dbdbaeef1e1be0d8da18cb97a9e91be27f934 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 26 Oct 2013 04:07:18 +0000 Subject: rename give_cursor to ED_view3d_cursor3d_get --- source/blender/editors/transform/transform.c | 4 ++-- source/blender/editors/transform/transform_generics.c | 2 +- source/blender/editors/transform/transform_manipulator.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'source/blender/editors/transform') diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c index c0fb959d6b5..9909f438734 100644 --- a/source/blender/editors/transform/transform.c +++ b/source/blender/editors/transform/transform.c @@ -2711,14 +2711,14 @@ static void initWarp(TransInfo *t) t->flag |= T_NO_CONSTRAINT; - //copy_v3_v3(t->center, give_cursor(t->scene, t->view)); + //copy_v3_v3(t->center, ED_view3d_cursor3d_get(t->scene, t->view)); calculateCenterCursor(t); t->val = 0.0f; data = MEM_callocN(sizeof(*data), __func__); - curs = give_cursor(t->scene, t->view); + curs = ED_view3d_cursor3d_get(t->scene, t->view); copy_v3_v3(data->warp_sta, curs); ED_view3d_win_to_3d(t->ar, curs, mval_fl, data->warp_end); diff --git a/source/blender/editors/transform/transform_generics.c b/source/blender/editors/transform/transform_generics.c index a8248cc73e1..33eca0d6b89 100644 --- a/source/blender/editors/transform/transform_generics.c +++ b/source/blender/editors/transform/transform_generics.c @@ -1500,7 +1500,7 @@ void calculateCenterCursor(TransInfo *t) { const float *cursor; - cursor = give_cursor(t->scene, t->view); + cursor = ED_view3d_cursor3d_get(t->scene, t->view); copy_v3_v3(t->center, cursor); /* If edit or pose mode, move cursor in local space */ diff --git a/source/blender/editors/transform/transform_manipulator.c b/source/blender/editors/transform/transform_manipulator.c index f667a98812b..132a46441e6 100644 --- a/source/blender/editors/transform/transform_manipulator.c +++ b/source/blender/editors/transform/transform_manipulator.c @@ -1635,7 +1635,7 @@ void BIF_draw_manipulator(const bContext *C) copy_v3_v3(rv3d->twmat[3], scene->twcent); break; case V3D_CURSOR: - copy_v3_v3(rv3d->twmat[3], give_cursor(scene, v3d)); + copy_v3_v3(rv3d->twmat[3], ED_view3d_cursor3d_get(scene, v3d)); break; } -- cgit v1.2.3