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/space_view3d/view3d_snap.c | |
parent | b461cc9cd4f9e1827feec81b88ffc8c3b981755f (diff) |
rename give_cursor to ED_view3d_cursor3d_get
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_snap.c')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_snap.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/editors/space_view3d/view3d_snap.c b/source/blender/editors/space_view3d/view3d_snap.c index 7c29ab01c24..8a099c7198b 100644 --- a/source/blender/editors/space_view3d/view3d_snap.c +++ b/source/blender/editors/space_view3d/view3d_snap.c @@ -687,7 +687,7 @@ static int snap_sel_to_curs_exec(bContext *C, wmOperator *op) const bool use_offset = RNA_boolean_get(op->ptr, "use_offset"); - cursor_global = give_cursor(scene, v3d); + cursor_global = ED_view3d_cursor3d_get(scene, v3d); if (use_offset) { snap_curs_to_sel_ex(C, center_global); @@ -852,7 +852,7 @@ static int snap_curs_to_grid_exec(bContext *C, wmOperator *UNUSED(op)) float gridf, *curs; gridf = rv3d->gridview; - curs = give_cursor(scene, v3d); + curs = ED_view3d_cursor3d_get(scene, v3d); curs[0] = gridf * floorf(0.5f + curs[0] / gridf); curs[1] = gridf * floorf(0.5f + curs[1] / gridf); @@ -1035,7 +1035,7 @@ static int snap_curs_to_sel_exec(bContext *C, wmOperator *UNUSED(op)) View3D *v3d = CTX_wm_view3d(C); float *curs; - curs = give_cursor(scene, v3d); + curs = ED_view3d_cursor3d_get(scene, v3d); if (snap_curs_to_sel_ex(C, curs)) { WM_event_add_notifier(C, NC_SPACE | ND_SPACE_VIEW3D, v3d); @@ -1072,7 +1072,7 @@ static int snap_curs_to_active_exec(bContext *C, wmOperator *UNUSED(op)) View3D *v3d = CTX_wm_view3d(C); float *curs; - curs = give_cursor(scene, v3d); + curs = ED_view3d_cursor3d_get(scene, v3d); if (obedit) { if (obedit->type == OB_MESH) { @@ -1127,7 +1127,7 @@ static int snap_curs_to_center_exec(bContext *C, wmOperator *UNUSED(op)) Scene *scene = CTX_data_scene(C); View3D *v3d = CTX_wm_view3d(C); float *curs; - curs = give_cursor(scene, v3d); + curs = ED_view3d_cursor3d_get(scene, v3d); zero_v3(curs); |