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:
authorSergey Sharybin <sergey.vfx@gmail.com>2020-07-14 11:42:35 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2020-07-14 11:43:32 +0300
commit25fc84bf2eef70c5aa0cc719e2155858a2ce63b1 (patch)
treecbd696552a3379f068d1f65be11cb68a5f578e8f
parent26793d619cbe399ba505ab4daeea1f6ed2eaa6a1 (diff)
Fix wrong vector size functions used in knife tool
Should not use copy_v3_v3 on a 2 element vectors.
-rw-r--r--source/blender/editors/mesh/editmesh_knife.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/mesh/editmesh_knife.c b/source/blender/editors/mesh/editmesh_knife.c
index 152c7656786..0394874e8c1 100644
--- a/source/blender/editors/mesh/editmesh_knife.c
+++ b/source/blender/editors/mesh/editmesh_knife.c
@@ -2123,7 +2123,7 @@ static KnifeVert *knife_find_closest_vert_of_face(KnifeTool_OpData *kcd,
!ED_view3d_clipping_test(kcd->vc.rv3d, kfv->cageco, true)) {
curv = kfv;
curdis_sq = dis_sq;
- copy_v3_v3(cur_kfv_sco, kfv_sco);
+ copy_v2_v2(cur_kfv_sco, kfv_sco);
}
}
}
@@ -2136,7 +2136,7 @@ static KnifeVert *knife_find_closest_vert_of_face(KnifeTool_OpData *kcd,
/* update mouse coordinates to the snapped-to vertex's screen coordinates
* this is important for angle snap, which uses the previous mouse position */
- copy_v3_v3(kcd->curr.mval, cur_kfv_sco);
+ copy_v2_v2(kcd->curr.mval, cur_kfv_sco);
}
return curv;