diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-10-26 08:07:18 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-10-26 08:07:18 +0400 |
commit | ff7dbdbaeef1e1be0d8da18cb97a9e91be27f934 (patch) | |
tree | 3df3af811c7565ea6d969a1f6004e0a9663edbcb /source/blender/editors/transform | |
parent | b461cc9cd4f9e1827feec81b88ffc8c3b981755f (diff) |
rename give_cursor to ED_view3d_cursor3d_get
Diffstat (limited to 'source/blender/editors/transform')
-rw-r--r-- | source/blender/editors/transform/transform.c | 4 | ||||
-rw-r--r-- | source/blender/editors/transform/transform_generics.c | 2 | ||||
-rw-r--r-- | source/blender/editors/transform/transform_manipulator.c | 2 |
3 files changed, 4 insertions, 4 deletions
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; } |