diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-11-29 19:49:38 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-11-29 19:49:38 +0300 |
commit | 1cb59394ae69148904de34a32d09319f02c86a09 (patch) | |
tree | 46938c37114753afda7dd9caa31a4943e7969ead /source/blender/editors/mesh | |
parent | 46d2b6cd0b11de899f13c1acf17d158eb8c192a6 (diff) |
Cleanup: use const, avoid float -> double in matrix invert
Diffstat (limited to 'source/blender/editors/mesh')
-rw-r--r-- | source/blender/editors/mesh/editmesh_knife.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/editors/mesh/editmesh_knife.c b/source/blender/editors/mesh/editmesh_knife.c index b08f7ef9613..5d60fcc2fc4 100644 --- a/source/blender/editors/mesh/editmesh_knife.c +++ b/source/blender/editors/mesh/editmesh_knife.c @@ -1410,8 +1410,9 @@ static void knife_find_line_hits(KnifeTool_OpData *kcd) { /* Scale the epsilon by the zoom level * to compensate for projection imprecision, see T41164 */ - float zoom_xy[2] = {kcd->vc.rv3d->winmat[0][0], - kcd->vc.rv3d->winmat[1][1]}; + const float zoom_xy[2] = { + kcd->vc.rv3d->winmat[0][0], + kcd->vc.rv3d->winmat[1][1]}; eps_scale = len_v2(zoom_xy); } |