Cleanup: Rename view3d context set function

Use common prefix so adding related functions share the prefix.
This commit is contained in:
2018-03-08 17:30:24 +11:00
parent 28f86bf117
commit ecab7bef69
23 changed files with 36 additions and 36 deletions

View File

@@ -1088,7 +1088,7 @@ bool ED_mesh_pick_face(bContext *C, Object *ob, const int mval[2], unsigned int
if (!me || me->totpoly == 0)
return false;
view3d_set_viewcontext(C, &vc);
ED_view3d_viewcontext_init(C, &vc);
if (size) {
/* sample rect to increase chances of selecting, so that when clicking
@@ -1253,7 +1253,7 @@ bool ED_mesh_pick_vert(bContext *C, Object *ob, const int mval[2], unsigned int
if (!me || me->totvert == 0)
return false;
view3d_set_viewcontext(C, &vc);
ED_view3d_viewcontext_init(C, &vc);
if (use_zbuf) {
if (size > 0) {