From 56762b08d34a99c9b233da03d17c411e26338dea Mon Sep 17 00:00:00 2001 From: leo Date: Fri, 20 Jul 2012 23:15:53 +0000 Subject: [PATCH] Fixed mouse detection on the move overlay. --- common/project.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/project.cpp b/common/project.cpp index 1ce062fc..e51d43e5 100644 --- a/common/project.cpp +++ b/common/project.cpp @@ -8472,6 +8472,8 @@ void Project::MouseUpdateOverlays(View* view, int x, int y) Points[i] = lcProjectPoint(Points[i], ModelView, Projection, Viewport); } + Points[0] = lcProjectPoint(Points[0], ModelView, Projection, Viewport); + // Check if the mouse is over an arrow. for (i = 1; i < 4; i++) { @@ -8487,7 +8489,7 @@ void Project::MouseUpdateOverlays(View* view, int x, int y) // Closest point in the line segment to the mouse. lcVector3 Closest = Points[0] + Line * u; - if ((Closest - Pt).LengthSquared() < 100.0f) + if ((Closest - Pt).LengthSquared() < 400.0f) { // If we already know the mouse is close to another axis, select a plane. if (Mode != -1)