From 63afbecab60778f70f22dbe3b68213c2fc405652 Mon Sep 17 00:00:00 2001 From: Garux Date: Thu, 15 Feb 2018 13:13:44 +0300 Subject: [PATCH] * fix accidental negative rotation by rotate tool in camera, caused by low precision --- radiant/selection.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/radiant/selection.cpp b/radiant/selection.cpp index 2f50336f..eb336b3a 100644 --- a/radiant/selection.cpp +++ b/radiant/selection.cpp @@ -85,7 +85,8 @@ void ray_for_device_point( Ray& ray, const Matrix4& device2object, const float x point_for_device_point( ray.origin, device2object, x, y, -1 ); // point at x, y, zFar - point_for_device_point( ray.direction, device2object, x, y, 1 ); + //point_for_device_point( ray.direction, device2object, x, y, 1 ); //sometimes is inaccurate up to negative ray direction + point_for_device_point( ray.direction, device2object, x, y, 0 ); // construct ray vector3_subtract( ray.direction, ray.origin );