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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-02-27 06:28:25 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-02-27 06:28:25 +0400
commita815e04f723c8d8bcd6d9fa778598a330795f7f2 (patch)
tree2673c69c65261b8fb1ffa2b2fa3234245507d6e3 /source
parentb5d6f14290c02f17cce38e3f96594af76e0410ae (diff)
Fix T38834: Knife constraint is offset after moving the view
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/mesh/editmesh_knife.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/mesh/editmesh_knife.c b/source/blender/editors/mesh/editmesh_knife.c
index a167870fdf6..12737976436 100644
--- a/source/blender/editors/mesh/editmesh_knife.c
+++ b/source/blender/editors/mesh/editmesh_knife.c
@@ -1797,6 +1797,10 @@ static int knife_update_active(KnifeTool_OpData *kcd)
{
knife_pos_data_clear(&kcd->curr);
copy_v2_v2(kcd->curr.mval, kcd->mval);
+
+ /* view matrix may have changed, reproject */
+ knife_project_v2(kcd, kcd->prev.co, kcd->prev.mval);
+
if (kcd->angle_snapping != ANGLE_FREE && kcd->mode == MODE_DRAGGING)
knife_snap_angle(kcd);