Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-09-07 03:41:03 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-09-07 03:41:03 +0400
commit0ecbc047e8a540175b00ed967050abb5f7363dbc (patch)
treefdf8a8011f919fb606b07d357a3be8b9606bf592 /source/blender/editors/mesh/editmesh_bvh.c
parent774cc0ab1663a5d31eeda797ac71c5143086ca98 (diff)
code cleanup
Diffstat (limited to 'source/blender/editors/mesh/editmesh_bvh.c')
-rw-r--r--source/blender/editors/mesh/editmesh_bvh.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/mesh/editmesh_bvh.c b/source/blender/editors/mesh/editmesh_bvh.c
index 549032f7286..c7e0077bc02 100644
--- a/source/blender/editors/mesh/editmesh_bvh.c
+++ b/source/blender/editors/mesh/editmesh_bvh.c
@@ -394,15 +394,15 @@ int BMBVH_EdgeVisible(BMBVHTree *tree, BMEdge *e, ARegion *ar, View3D *v3d, Obje
float co1[3], co2[3], co3[3], dir1[4], dir2[4], dir3[4];
float origin[3], invmat[4][4];
float epsilon = 0.01f;
- float mval_f[2], end[3];
+ float end[3];
+ const float mval_f[2] = {ar->winx / 2.0f,
+ ar->winy / 2.0f};
if (!ar) {
printf("error in BMBVH_EdgeVisible!\n");
return 0;
}
-
- mval_f[0] = ar->winx / 2.0f;
- mval_f[1] = ar->winy / 2.0f;
+
ED_view3d_win_to_segment_clip(ar, v3d, mval_f, origin, end);
invert_m4_m4(invmat, obedit->obmat);