From fdbef334bbe8cbf737db949c45626e3b63345b7f Mon Sep 17 00:00:00 2001 From: Brian Richardson Date: Wed, 2 May 2018 17:03:51 -0700 Subject: [PATCH] Camera::project_local_ray_normal needs to be virtual so that ARVRCamera::project_local_ray_normal gets called. (cherry picked from commit 680a5cbb0bd8a6753400facc469e3d9126ff92c4) --- scene/3d/camera.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scene/3d/camera.h b/scene/3d/camera.h index 86bbf236ffd..e7423ddfee5 100644 --- a/scene/3d/camera.h +++ b/scene/3d/camera.h @@ -132,9 +132,9 @@ public: virtual Transform get_camera_transform() const; - Vector3 project_ray_normal(const Point2 &p_pos) const; + virtual Vector3 project_ray_normal(const Point2 &p_pos) const; virtual Vector3 project_ray_origin(const Point2 &p_pos) const; - Vector3 project_local_ray_normal(const Point2 &p_pos) const; + virtual Vector3 project_local_ray_normal(const Point2 &p_pos) const; virtual Point2 unproject_position(const Vector3 &p_pos) const; bool is_position_behind(const Vector3 &p_pos) const; virtual Vector3 project_position(const Point2 &p_point) const;