From: Frederic Bouvier Date: Tue, 24 Apr 2012 21:34:29 +0000 (+0200) Subject: Don't care about light volumes when picking in the scenegraph X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7006ca12a809ee10a47b15c2f21d2a4a153ca15b;p=flightgear.git Don't care about light volumes when picking in the scenegraph --- diff --git a/src/Main/CameraGroup.cxx b/src/Main/CameraGroup.cxx index 66c08ca2a..495da49c1 100644 --- a/src/Main/CameraGroup.cxx +++ b/src/Main/CameraGroup.cxx @@ -1163,6 +1163,7 @@ static bool computeCameraIntersection(const CameraInfo* cinfo, Vec3d(start.x(), start.y(), start.z()), Vec3d(end.x(), end.y(), end.z())); osgUtil::IntersectionVisitor iv(picker.get()); + iv.setTraversalMask( ~simgear::MODELLIGHT_BIT ); const_cast(camera)->accept(iv); if (picker->containsIntersections()) { intersections = picker->getIntersections();